Skip to main content

A toolkit of geometry and physics formulas

Project description

📦 Formulix

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


🚀 Installation

Install using pip:

pip install Formulix

📊 Usage

First, import the package in your Python script:

import Formulix

📀 Geometry Functions

▶️ Area Functions

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 Functions

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)

▶️ Pythagoras Theorem

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

🔋 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)

🌌 Example

import Formulix

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

📈 Coming Soon

  • Electricity formulas
  • Optics & waves
  • CLI interface for command-line use

✉️ Author

Darsh Nayak Das


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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for formulix-0.2.tar.gz
Algorithm Hash digest
SHA256 a9b415fe5b0a23b2eef161cdf3720b9b6ccd8ac3e2c657039078b0933c5100fa
MD5 b1388872370110a4934d9b7f08659bd5
BLAKE2b-256 53f861edc902e1088695a146049b4bf12ca3a42f388b8dce33906f791ccfb098

See more details on using hashes here.

File details

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

File metadata

  • Download URL: formulix-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.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-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0611089508776c11bf5b0e4a79c5756fea508470ff45ce90d2295b1f38357e88
MD5 d4d0b309779a09968b56517c708b8551
BLAKE2b-256 29f85d2ac8bdc74a1f61e654252b4f6da46d7e28d91ac886ce8e8d12739fe098

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