Current collected state Current
Observed since 21 Oct, 09:16 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A package for physics motion calculations
This is a package for physics motion calculations.
pip install agnmol
Displacement is calculated using formula:
x = (vi-vf)/2*t
from agnm.motion import displacement
displacement(1, 2.3, 3) # output: 2.65
# or use named variables
displacement(vf=2.3, t=1, vi=3) # output: 2.65
Change in position is calculated using formula:
x = vi*t+1/2*a*t^2
from agnm.motion import change_in_position
change_in_position(1, 3, 2) # output: 12.0
# or use named variables
change_in_position(a=2, t=3, vi=1) # output: 12.0
Final velocity is calculated using one of formulas:
vf = (vi^2+2a*x)^1/2
vf = vi+a*t
from agnm.motion import v_final
# using first equation
v_final(vi=1, a=3, x_delta=1.5) # output: 10.0
# using second equation
v_final(vi=1, a=2.3, t=2) # output: 5.6
Average velocity is calculated using one of formulas:
va = x/t
va = (vi+vf)/2
from agnm.motion import v_average
# using first equation
v_average(x_delta=1, t=3) #output: 0.3333333333333333
# using second equation
v_average(vi=1, vf=2.6) #output: 0.8
Acceleration velocity is calculated using one of formulas:
a = v/t
a = (vf+vi)/t
from agnm.motion import acceleration
# using first equation
acceleration(v_delta=5, t=2.5)
#output: 2.0
# using second equation
acceleration(vi=1, vf=6, t=2.5)
#output: 2.0
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.12 | 23 Apr 2023 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:16 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:70ba780ba10837b92d2dd687fb9e07e05abfb27227fc5a0baec52675b717486b