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.2.tar.gz (4.5 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.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: formulix-1.2.2.tar.gz
  • Upload date:
  • Size: 4.5 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.2.tar.gz
Algorithm Hash digest
SHA256 e245782431d64f0f03c2aa3f0f525bd16dd27b7c6e543b8e8a6bbf5551c20c9a
MD5 d60305da184e1cbd05cc39b6ed8a3285
BLAKE2b-256 de0479eb24d989d21ddeda8ad8396f1e8b2df17a349415cd67023f6226d2696a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: formulix-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 94f053103ed5ecc637a14e51d8189ef3d0e4ef5a73e3cd14b748e1b4787f13f2
MD5 b8d3a75cb80f23a88de3dc4c4fc538dc
BLAKE2b-256 1549a97ba41f65db2fa15d6aeefaceee3f118c1b01ceb4eefe3ba57d81fc6c0c

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