Skip to main content

A toolkit of geometry and physics formulas

Project description

📦 Formulix

Formulix is a Python package containing essential geometry, physics, and chemistry formula functions. It's perfect for students, hobbyists, and developers needing fast calculations for areas, volumes, motion, atomic info, and more.


🚀 Installation

Install using pip:

pip install Formulix

📊 Usage

First, import the package in your Python script:

import Formulix

📀 Geometry Functions

▶️ Area

Formulix.rectangle_area(length, breadth)
Formulix.square_area(side)
Formulix.circle_area(radius)
Formulix.triangle_area(base, height)
Formulix.eq_triangle_area(side)
Formulix.rhombus_area(diagonal1, diagonal2)
Formulix.parallelogram_area(base, height)
Formulix.trapezium_area(base1, base2, height)
Formulix.heron_area(a, b, c)

▶️ Volume

Formulix.cube_volume(side)
Formulix.cuboid_volume(length, breadth, height)
Formulix.cylinder_volume(radius, height)
Formulix.cone_volume(radius, height)
Formulix.sphere_volume(radius)

▶️ Perimeter & Circumference

Formulix.rectangle_perimeter(length, breadth)
Formulix.square_perimeter(side)
Formulix.triangle_perimeter(a, b, c)
Formulix.circle_circumference(radius)
Formulix.rhombus_perimeter(side)
Formulix.parallelogram_perimeter(base, side)
Formulix.trapezium_perimeter(a, b, c, d)

▶️ Special Geometry

Formulix.pythagoras_hypotenuse(a, b)
Formulix.pythagoras_missing_side(hypotenuse, side)
Formulix.triangle_median(a, b, c)

🔋 Physics Functions

▶️ Motion

Formulix.speed(distance, time)
Formulix.distance(speed, time)
Formulix.time(distance, speed)
Formulix.acceleration(final_velocity, initial_velocity, time)

▶️ Force & Weight

Formulix.force(mass, acceleration)
Formulix.weight(mass, gravity=9.8)

🔬 Chemistry Functions

▶️ Atomic Data (powered by periodictable)

Formulix.get_atomic_mass("H")           # 1.008
def get_atomic_number("O")              # 8
Formulix.get_density("Fe")              # 7.874
def get_name("Na")                      # Sodium
Formulix.describe_element("C")          # Returns a dictionary of properties

🌌 Examples

import Formulix

print(Formulix.circle_area(7))              # 153.94...
print(Formulix.pythagoras_hypotenuse(3, 4)) # 5.0
print(Formulix.speed(100, 2))               # 50.0
print(Formulix.get_atomic_mass("Na"))       # 22.99

📊 Coming Soon

  • Electricity formulas
  • Optics & waves
  • Unit conversion tools
  • CLI interface for terminal use
  • Quiz & explanation modes

✉️ Author

Darsh Nayak Das (darsh.nayak@outlook.com)


🚫 License

This project is open-source and free to use for educational purposes.

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

formulix-0.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

formulix-0.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file formulix-0.3.tar.gz.

File metadata

  • Download URL: formulix-0.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for formulix-0.3.tar.gz
Algorithm Hash digest
SHA256 1348f7c4389fbd53f7dec519c7fc8f17f99e64bb84594a3bb36e5ab96bfeb25d
MD5 187632e81e2486756efd32eca976dafe
BLAKE2b-256 b9a52fe93549fc319722b57062ca11096979f759baf10e1680c54471fa6cb2da

See more details on using hashes here.

File details

Details for the file formulix-0.3-py3-none-any.whl.

File metadata

  • Download URL: formulix-0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for formulix-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6fe3354fce44475507827d39214f2d5052a541c832b71591859c0387ba1c7162
MD5 b530600073d6f1c0b9bb27074ef23078
BLAKE2b-256 e75f0712077e15f1074eb0d707d68193f3e7791c5e077bc30e507829f46e6d55

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