Source code¶
ssw_sphinx.gravity module¶
Module: | ssw_sphinx |
---|---|
Author: | David Eriksson <dme65@cornell.edu> |
-
class
ssw_sphinx.gravity.
Gravity
(v0)¶ This class knows how to handle gravity
And here is a lot of more info .....
Parameters: v0 (float) – Initial velocity Variables: g – Gravity constant Note
This class is completely useless
Warning
Make sure you know how to handle gravity
-
speed
(t)¶ Computes the speed at time \(t\)
Computes the speed at time \(t\) using the formula
\[v(t) = v_0t - \frac{gt^2}{2}\]Parameters: t (float) – Time for which we want to compute the speed Return type: float Returns: Speed at time t Todo
Check that t is non-negative
-