Skip to main content

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


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)

Uploaded Source

Built Distribution

Pythoreum-0.2.1-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page