A simpple Pythogoreus theorum calculator!
Project description
Pythoreum
This module can be used to calculate the sides of a right angled triangle using the famous Pythogoreas Theorum. This is a fairly simple and useful module for maths.
Installation:
Windows:
$ pip install Pythoreum
Mac OS or Linux:
$ pip3 install Pythoreum
Importing the Module
Its pretty simple to import the module. You Can import the calculate function in two ways.
First Way:
from Pythoreum import calculate
Second Way:
import Pythoreum
Use Case or How to use it:
The Pythoreum module is desined to recieve any two sides of the right angled triangle we can mention sides a, b or sides b,c or sides c,a and it will calculate the missing side.
Lets take an example where side a = 3 and side b = 4:
We can use the module like this:
from Pythoreum import calculate
# Using the calculate function to calculate the missing side(c)
calculate(a = 3, b = 4)
Output:
a = 3
b = 4
c = 5.0
This is how to use Pythoreum to calculate the missing side of a right angled triangle
NOTE:
This just prints the values and does not return them in the next updates there will be a second function
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
Pythoreum-0.2.1.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for Pythoreum-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0923f668b3177f82397d2a66c244a8495d8757c3e7b6c782ec5becc8340d2911 |
|
MD5 | 3e6996a27b3e3b4847f942a8727495e6 |
|
BLAKE2b-256 | deeefa1034fdc73fd58fe578e39f870f60518c59e0036768e2abc9ede6f77c3d |