Skip to main content

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


Download files

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

Source Distribution

algebraMathGenerator-0.0.3.tar.gz (3.3 kB view hashes)

Uploaded Source

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