Skip to main content

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

  1. Installation
  2. Practical Information
  3. Usage
  4. Contributing
  5. License

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:
right_triangle

Usage

Table of Contents

  1. Configuring class
  2. Using the class
  3. Getting the values

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

MIT

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

math_for_cannibals-1.12-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file math_for_cannibals-1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for math_for_cannibals-1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d1cfdbe947833061a45283037e80f2c07067988de0b74a6e143313b7a53edc1f
MD5 23b04820f70bc9850d6ef4b079cc7588
BLAKE2b-256 846cfd2ae0fdfbd21751cae9386b777b2c9af71eb82f08daf1da134d21df1b62

See more details on using hashes here.

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