A module for calculating the areas of an ellipse and a triangle.
Project description
SquareCalcLib
A project to confirm knowledge on the platform hh.ru
Date: 08.03.2024
A project to confirm knowledge on the platform hh.ru.
Library for calculating the areas of an ellipse and a triangle.
Stack of technologies used:
- Python 3.10
[!NOTE] All modules are located in "SquareCalcLib"
[!NOTE] Input values for the module "find_square_triangle":
To find the area of a triangle, you can enter both 3 sides and 2 sides and the angle BETWEEN THEM
- sides: list[float] - list of sides of the triangle
- angle: float = None - the value in degrees of the angle between the two sides of the triangle
[!NOTE] Input values for the module "find_square_ellipse":
If you are sure that your shape is a circle, then you can not enter the "small_semi_axis" parameter, but represent "large_semi_axis" as the radius of the circle
- large_semi_axis: float - the value of the length of the large semi-axis of the ellipse
- small_semi_axis: float = None - the value of the length of the small semi-axis of the ellipse
[!NOTE] NumberVariablesError The error class of the entered values
Types of errror:
- ZeroOrNegativeSemiAxis - semi-axis cannot be negative or equal to zero
- IncorrectValuesSidesTriangle - the values of the sides of a triangle cannot be negative
- SumSidesTriangle - the value of any one side cannot be greater than the sum of the values of the other sides
- ValueAngleError - The angle cannot be less than or equal to zero or the angle cannot be more than 180 degrees
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
File details
Details for the file SquareCalcLib-0.0.5.tar.gz.
File metadata
- Download URL: SquareCalcLib-0.0.5.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06217070e7376feb44181be842e32b72e2000ec5dafa65c80891a4f9e4d1260b
|
|
| MD5 |
8b7a50c96d0dcbfbcc498632e6965f5f
|
|
| BLAKE2b-256 |
2dc72266fcf605a6ad9fdd5b880f49b59819715f685c21c3a0a21ed2fd6f09bb
|