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(equationClass.equation) # returns 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(equationClass)
print(equationClass.equation) # returns an equation
print(answer) # returns the answer to the equation above

You can even loop through the generate method to produce a bunch of equations and their answers!

Documentation

Class algebraMathGenerator

2 functions

Function: .generateAlgebraEquation(operation : str)

  • .equation - returns the equation Example: 2x + 4 = 6

  • .variable - returns the variable Example: x

  • .operation - returns the operation done Example: +

  • .equalsTo - returns the number the equation is equal to. Example: 6

  • .coeffecient - returns the number mutiplied by the variable Example: 2

  • .constant - returns the constant term in the equation. Example: 4

Returns class object

Function: solveAlgebraEquation(equation : class)

Input should be of type .generateAlgebraEquation()

Returns float value

Change Log

0.0.3 (04/23/2020)

  • Updating documentation

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.6.8.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file algebraMathGenerator-0.0.6.8.tar.gz.

File metadata

  • Download URL: algebraMathGenerator-0.0.6.8.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for algebraMathGenerator-0.0.6.8.tar.gz
Algorithm Hash digest
SHA256 e913543736f6ae120eb7841711e9e48250ed488e82a6d2bbb809d00749cf5af2
MD5 c73bb6e09bce0a042ed77e88e52044a4
BLAKE2b-256 8eb55586c93a4145fb0da1edb6948b3fcabd14146a5390b4ffcca38381618668

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