Skip to main content

calculates the area of a circle by radius and a triangle by three sides

Project description

Geometric Library

What is this?

The module allows you to calculate the area of a circle by radius and a triangle by three sides

Using

Let's import it first: First, import everything from the library (use the from ... import GeometryCalculator construct).

The library has 2 functions:

calculate the area of a circle by radius:

    circle_area(radius)

calculate the area of a triangle on three sides

    triangle_area(side1, side2, side3)

Examples of all operations:

radius = 5
circle_area = GeometryCalculator.circle_area(radius)
print(f"The area of a circle with radius {radius} is equal to {circle_area:.2f}")

side1 = 3
side2 = 4
side3 = 5
triangle_area = GeometryCalculator.triangle_area(side1, side2, side3)
print(f"the area of a triangle with sides {side1}, {side2} and {side3} is equal to {triangle_area:.2f}")`

Developer

My github: link

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

geometricLib-0.0.2.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

geometricLib-0.0.2-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file geometricLib-0.0.2.tar.gz.

File metadata

  • Download URL: geometricLib-0.0.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for geometricLib-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8540e747b4814853a4123fc17b6195ed872e2a9a55b04bc6f6f6d4a72818a5bd
MD5 4f04db71b6660d0e63abae16de47c7e9
BLAKE2b-256 d2d4503e38d948f2a66bd496483dfa65032553ebaf425ed90065589204fbe428

See more details on using hashes here.

File details

Details for the file geometricLib-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: geometricLib-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for geometricLib-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e9c869298a8c371e85e7395a03b450145292618a2fddf9537a0906b8606eee27
MD5 d55d06ef5dfc4a0260074833db8ed478
BLAKE2b-256 7a6189e442a530634c2f6dbb79ef98cd60778279b339d6f294a6dd61dd849ccf

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