Skip to main content

Physics equations of motion solver

This is a package for physics motion calculations.

Installation

pip install agnmol

Usage

Displacement

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

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

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

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

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

Metadata

Release files for agnmo 1.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agnmo 1.0.12
File Size Uploaded Provenance
agnmo-1.0.12.tar.gz 3.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agnmo 1.0.12
File Interpreter ABI Platform
agnmo-1.0.12-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / agnmo-1.0.12.tar.gz

Download URL agnmo-1.0.12.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5db669e107a34875124deb74c4d5ce235a8dbf2972976df948dbe34338b325fb
BLAKE2b-256 checksum
How to use checksums
027ed801c811011135b9aa02605dc28918a58bdac1eba4a6fd4d7e62d3a7445e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / agnmo-1.0.12-py3-none-any.whl

Download URL agnmo-1.0.12-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9d5287e0947efe59a865523c0deb648e397bc05cf1a729c8056fa248ea9b9ff
BLAKE2b-256 checksum
How to use checksums
db04b97a21f288684f1a147c783198449cd4683d11caa9efe268bcda30c35671
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for agnmo 1.0.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.12 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page