[1] 19554.33
[1] 53911.93
The following function estimates the mass of an organism in kg based on its length in meters and a set of parameter values. For some types of dinosaurs we don’t have specific values of a
and b
, so we have to use general values that can be applied to a number of different species.
Rewrite this function so that its arguments have default values of a = 39.9
and b = 2.6
(the average values from Seebacher 2001).
a = 214.44
, b = 1.46
) that is 22 m long (by setting a
and b
when calling the function).length
, not a
and b
, so that the default values are used.[1] 19554.33
[1] 53911.93