School algorithm module for Python
Project description
Table of Contents
About The Project
Algorithms
How to Install
How to update to latest version
How to Import
School Algorithms
school_algorithms is a Python module for secondary school maths and physics equations. It aims to provide a simple way for secondary school students to learn and calculate equations that they often use.
Functions include:
- A function that calculates power from energy and time
- A function that calculates energy from power and time
- A function that calculates time from power and energy
- A function that uses Pythagorean theorem to calculate the hypotenuse of a right-angled triangle
- A function that uses Pythagorean theorem to calculate a leg of a right-angled triangle
- A function that calculates the area of a triangle
- A function that calculates the area of a trapezium
- A function that calculates the volume of a right rectangle pyramid
- A function that calculates the area of a circle
- A function that calculates the circumference of a circle
- A function that calculates the circumference of a circle using diameter
- A function that calculates the area of a sector in a circle
- A function that calculates the volume of a square based pyramid
- A function that calculates the Lowest Common Multiple from 2 numbers
- A function that calculates the Lowest Common Multiple from 3 numbers
- A function that calculates the Lowest Common Multiple from 4 numbers
- A function that calculates the Lowest Common Multiple from 5 numbers
To install:
>>> python3 -m pip install school_algorithms
To upgrade to latest version:
>>> python3 -m pip --upgrade school_algorithms
To import:
>>> import school_algorithms
How to use documentation:
Documentation is in the form of docstrings provided with the code.
The docstring examples assume that 'school_algorithms' has been imported:
>>> import school_algorithms
Code snippets are indicated by three greater-than signs:
>>> x = 42
>>> x = x + 1
Use the built-in help
function to view a function's docstring:
>>> help(school_algorithms.power_calc)
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
Built Distribution
File details
Details for the file school_algorithms-1.14.0.tar.gz
.
File metadata
- Download URL: school_algorithms-1.14.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa453f5cfa137c97f60f5a7d33c25aaaf3460cc66975d6aa3a62a94e11a6db9e |
|
MD5 | fd9125b4adfe15dbe87b4106144cb42a |
|
BLAKE2b-256 | ab7c19ff24943857ce7870a0834422f2ac6b30bfd82d768d46206bc76353d698 |
File details
Details for the file school_algorithms-1.14.0-py3-none-any.whl
.
File metadata
- Download URL: school_algorithms-1.14.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd5ec46b6fe8b7f986dee4f42f3e0c51fe75c4fe4ce250835ab01f39a034c617 |
|
MD5 | 7a76f31d5391cb47904dcc3360a82125 |
|
BLAKE2b-256 | 65eea8822b43b2bcbc51bdf7483b8f955a097d19678042c3c4173836f90bf222 |