Skip to content

Sammygarch/school_algorithms

Repository files navigation

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 calculates Elastic Potential energy from the spring constant and extension
  • A function that calculates Kinetic Energy from spead and mass
  • 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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages