Skip to main content

A package containing Physics formulas and constants for various calculations.

Project description

physics-gabri432

GitHub

A library containing several physics formulas and constants for making various calculations.

Project structure

Description

  • Body.py, a class to ease the use of some formulas;
  • classical.py, collection of formulas from Cinematics and Dynamics fields;
  • constants.py, collection of constants from all fields;
  • electromagnetism.py, collection of formulas from Electromagnetism field;
  • fluids.py, collection of formulas from Fluids field;
  • gravity.py, collection of formulas from Gravitation field;
  • mathem.py, collection of utility math formulas;
  • relativity.py, collection of formulas from Relativity field;
  • thermodynamics.py, collection of formulas from Thermodynamics field;

How to install it

pip install physics-gabri432

How to use the library

Use functions

import physics
from physics import classical  #importing the classical module
print(classical.force(3,4))    #using a function from the classical module

Result

>>> (12, 'N') // Respectevely, the result and the measurement unit

Or create a custom object and use its methods

from physics.Body import Body       #importing the Body class
earth = Body('Earth', 5.97e24, 0)   #Initializing a variable 'earth' with its name, mass and speed.
print(earth)                        #Showing the string representation of the class.
print(earth.grav_field(6.371e6))    #using a function from the classical module

Result

>>> Name: Earth         // The string representation of a Body object
    Mass: 5.97e+24 kg
    Speed: 0 m/s.
>>> (9.810360234523877, 'm/s^2') // Respectevely, the result and the measurement unit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

physics-gabri432-0.2.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

physics_gabri432-0.2.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file physics-gabri432-0.2.0.tar.gz.

File metadata

  • Download URL: physics-gabri432-0.2.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for physics-gabri432-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b5296dfed668ba80504bb50bf55811998ef058805fa3c4ec23cffafc6f1a0ef3
MD5 bc10dd3de05488825e69fa644d992c9a
BLAKE2b-256 8df204555cdf65d7b739534439058b4d6392e35f5f01f63c2ddbab1b7c88927a

See more details on using hashes here.

File details

Details for the file physics_gabri432-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for physics_gabri432-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7afbb4388d8751121d32bfe04f4e0732fc5ba4ea5591a3bda5b4600a3d9dcc6
MD5 7876be7e2ebf6986a8b1e9024ca0408e
BLAKE2b-256 787f61e0b10d9f55f89673dd5325e8ff096c2e55113325f02a5ac4931e4d7bb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page