Up

_scienceMathsChuteLibre

Retrieve some parameters from equations hourly of an object in free fall under only the force of a gravity field.

Equation hourly of the speed from to time :
V(t) = -gt + V0

Equation hourly of the altitude relative to time :
Z(t) = -1/2gtē + V0t + Z0

With g is the standard gravity, V0 is the initial speed and Z0 is the initial height.

The trajectory is a right line possibly in two-way (downwards only or upwards then downwards), in the same plane. The rules are as follows :

The result depends on the value of the flag.

Prototype :

fun [F F F I F] F

Return : F the result or nil if error

See also :

Example :

Get the height after 1 second. The initial speed is 2 m/s and the initial height is 5.5 meters. The result is 2.6 meters.

fun main ()=
	_showconsole;
	_fooF _scienceMathsChuteLibre nil 2.0 5.5 SCOLMATHS_MVT_GETHEIGHT_TOTIME 1.0; // 2.600000
	0;;

Note

Results are approximations (depends on float definition)