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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geometricLib-0.0.3.tar.gz.
File metadata
- Download URL: geometricLib-0.0.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0f3942fe3d65123b145b382f9189f5e8dc3c01abf3280e323a41aac6e79d44a
|
|
| MD5 |
d8d5e5735cea172d402cae772823b772
|
|
| BLAKE2b-256 |
a16e2196e600bc284ca2d873e337669bb969a59aef69c54d4a26b4f01b649119
|
File details
Details for the file geometricLib-0.0.3-py3-none-any.whl.
File metadata
- Download URL: geometricLib-0.0.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31cf137cce61f9eb11f26678241fb919cec91c3a1d6fc385ce54043b916b9b48
|
|
| MD5 |
962b77f1652e880c465ee9059d2bec64
|
|
| BLAKE2b-256 |
eb7ff96bd6a1a04f159234572a87a5fdf011c4c0c40e0d79aedee02de57b0117
|