An easy way to generate algebraic equations and even solve them
Project description
Algebra generator that can easily create algebra equations in the Ax + b = C format. It can also solve equations in Ax + b = C. Right now, only the operations, '-' and '+' are supported
Getting Started
The following is an example of how to create a algebra math equation.
The algebraMathGenerator.generateAlgebraEquation()
will return a class, so you can get the equation by adding a .equation
after it.
import algebraMathGenerator
equationClass = algebraMathGenerator.generateAlgebraEquation(operation = "+")
print(equationType.equation)
You can solve equations with algebraMathGenerator.solveAlgebraEquation(equation : class)
. The equation variable should be a class returned from algebraMathGenerator.generateAlgebraEquation()
import algebraMathGenerator
equationClass = algebraMathGenerator.generateAlgebraEquation(operation = "+")
answer = algebraMathGenerator.solveAlgebraEquation(equationType)
print(equationClass.equation) # returns an equation
print(answer) # returns the answer to the equation above
Equation Class Properties
The algebraMathGenerator.generateAlgebraEquation()
has many properties.
algebraMathGenerator.generateAlgebraEquation()
properties:
.equation .variable .operation .equalsTo .coeffecient .constant
You can even loop through the generate method to produce a bunch of equations and their answers!
Change Log
0.0.2 (04/23/2020)
- Second Release
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
Hashes for algebraMathGenerator-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac2c760d34e77130cfe44b5917e3a5a9ab5a66a32ae46a5d9582be5f42250a04 |
|
MD5 | e00e0557dcf338741163907c00210c79 |
|
BLAKE2b-256 | 4c029dfdf114956a9c1f653bb839c38ab97e42a215bce4502b4eba1b10413677 |