Skip to main content

A toolkit of geometry and physics formulas

Project description

📦 Formulix

Formulix is a powerful and easy-to-use Python package that provides a collection of tools and utilities for solving problems in Geometry, Physics, Chemistry, Mathematics, and Conversions.

It’s perfect for students, educators, and developers building science-related applications.


🚀 Features

📐 Geometry (shapes.py)

  • rectangle_area(length, width)
  • square_area(side)
  • circle_area(radius)
  • triangle_area(base, height)
  • rhombus_area(d1, d2)
  • polygon_area(sides)

🧲 Physics (physics.py)

  • force(mass, acceleration)
  • kinetic_energy(mass, velocity)
  • potential_energy(mass, height, gravity)
  • ohms_law(v=None, i=None, r=None)
  • solve_kinematics(u=None, v=None, a=None, t=None, s=None)

⚗️ Chemistry (chem.py)

  • molar_mass(formula)
  • mass_to_moles(compound, mass)
  • moles_to_mass(compound, moles)
  • element_info(symbol)

📊 Graphing (graphing.py)

  • plot_equation(equation_str)

🔢 Equation Solver (equation_solver.py)

  • solve_equation("x**2 - 4 = 0")
  • simplify_expression("2*x + 3*x")

🔁 Unit Conversion (convert.py)

  • convert_length(100, 'cm', 'm')
  • convert_mass(5, 'kg', 'g')
  • convert_time(120, 's', 'min')
  • convert_temperature(0, 'C', 'F')
  • convert_volume(1, 'l', 'ml')
  • convert_speed(90, 'km/h', 'm/s')

📦 Installation

pip install Formulix

✅ Example Usage

from formulix import (
    rectangle_area, force, molar_mass,
    solve_equation, plot_equation, convert_temperature
)

print(rectangle_area(10, 5))         # 50
print(force(10, 2))                  # 20
print(molar_mass("H2O"))            # 18.015
print(solve_equation("x**2 - 4 = 0"))  # [2, -2]

plot_equation("x**2 + y**2 = 25")   # Shows a plot
print(convert_temperature(0, 'C', 'F')) # 32.0

🧪 Requirements

  • numpy
  • sympy
  • periodictable

All are installed automatically with pip.


📬 Author

Darsh Nayak Das
9th Grade Student & Science Coder 💡


📄 License

MIT License

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-1.2.1.tar.gz (4.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-1.2.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for formulix-1.2.1.tar.gz
Algorithm Hash digest
SHA256 8a1c65ce63e42ca83b4e990ef44a3258e10f39bd2241459c9c1eed1ca7717351
MD5 0865c29d00ed5d51b2375dba6e37e2c0
BLAKE2b-256 1d4f7e18597f2315ccf985a34be31ac93b622334f6036294bad66c8f55448601

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for formulix-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 400b445fc18ea8bca277752403b845693ec7a96e147ecd1647c8ef2f0f1a3d68
MD5 b3aedf732fad4cd568043da5ae2a4b9f
BLAKE2b-256 5e716cdd7203f7c8e41838b42ec0bf747b7f69400a3cb4a15d28c9c515cb9bfd

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