Math functions to simplify mathematical tasks
Project description
Math for cannibals
This is a python package with mathematical functions used to automate mathematical tasks
Table of Contents
Installation
pip install math-for-cannibals
Practical Information
When using the class, you will be promted with a, b and c values.
I have chosen to define these values like so:
Usage
Table of Contents
Configuring class
The class used to calculations will be configured like this:
from program.RightTriangle import RightTriangle
RightTriangle = RightTriangle(aSide, bSide, cSide, aDegree, bDegree)
An example of this can look like:
Rt = RightTriangle(aDegree=20)
Using the class
You use the class by entering the information you have about the triangle.
Some examples using the class:
Rt = RightTriangle(aDegree=20)
Rt = RightTriangle(aSide=2, bSide=3)
Rt = RightTriangle(aDegree=20, aSide=2)
Getting the values
In order to get the calculated angles and sides of the triangle you need to access the properties of the class.
Rt = RightTriangle(aDegree=20)
Rt.get_degrees()
There are three properties:
get_degrees() (which only returns the degrees of the triangle)
get_sides() (which only returns the sides of the triangle)
get_triangle() (which returns the sides and degrees of the triangle)
Contributing
Contributing is welcome, please just email so I can get a clear understanding of the improvement. Please make sure to update tests as appropriate.
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 Distributions
Built Distribution
File details
Details for the file math_for_cannibals-1.12-py3-none-any.whl
.
File metadata
- Download URL: math_for_cannibals-1.12-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1cfdbe947833061a45283037e80f2c07067988de0b74a6e143313b7a53edc1f |
|
MD5 | 23b04820f70bc9850d6ef4b079cc7588 |
|
BLAKE2b-256 | 846cfd2ae0fdfbd21751cae9386b777b2c9af71eb82f08daf1da134d21df1b62 |