Skip to main content

School algorithm module for Python

Project description

Contributors Forks Stargazers Issues MIT License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

school_algorithms-1.13.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

school_algorithms-1.13.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file school_algorithms-1.13.0.tar.gz.

File metadata

  • Download URL: school_algorithms-1.13.0.tar.gz
  • Upload date:
  • Size: 6.9 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

Hashes for school_algorithms-1.13.0.tar.gz
Algorithm Hash digest
SHA256 b4c2b7d106162b94baec73657ae0d96fd07009296de4a15d47c7eae9234464d3
MD5 816e2998a7c662a32321ab63ef56895f
BLAKE2b-256 4c620ffc315ab1a1075e8a1df21e60332b0e1b121620d3e809d18340c3278e48

See more details on using hashes here.

File details

Details for the file school_algorithms-1.13.0-py3-none-any.whl.

File metadata

  • Download URL: school_algorithms-1.13.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

Hashes for school_algorithms-1.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14387a6df33da03c6445b5487e78578c77a0c4ea061c6fcb029325ce977b8ab0
MD5 cf9b60d0d310dadf133bc4bd6291662a
BLAKE2b-256 d48824c906ca10f9de77c7f10a3d03f35dde449bf0bb24d735380d399ccdafd5

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