Equations that can be algebraicly manipulated.
Project description
Algebraic Equations with SymPy
author: Jonathan Gutow gutow@uwosh.edu
date: January 2021
license: GPL V3+
This tool define relations that all high school and college students would recognize as mathematical equations. They consist of a left hand side (lhs) and a right hand side (rhs) connected by the relation operator "=".
This tool applies operations to both sides of the equation simultaneously, just
as students are taught to do when
attempting to isolate (solve for) a variable. Thus the statement Equation/b
yields a new equation Equation.lhs/b = Equation.rhs/b
The intent is to allow using the mathematical tools in SymPy to rearrange equations and perform algebra in a stepwise fashion using as close to standard mathematical notation as possible. In this way more people can successfully perform algebraic rearrangements without stumbling over missed details such as a negative sign. This mimics the capabilities available in SageMath and Maxima, but can be installed in a generic python environment.
Once the algebra is complete it is possible to substitute numbers with units into the solved equation to calculate a numerical solution with proper units.
Setup/Installation: Use pip to install in your python environment:
python pip -U Algebra_with_SymPy
To use issue the following command in a
running python session: from algebra_with_sympy import *
.
This will also import the SymPy tools. If you want to isolate this tool
from the global namespace you are working with change the import statement
to import algebra_with_sympy as spa
, where
spa
stands for "SymPy Algebra". Then all calls would be made to spa.funcname()
.
Usage examples can be found in the docstrings and the demonstration Jupyter
notebook Demonstration of equation class.ipynb
in this git repository.
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
Built Distribution
Hashes for Algebra_with_SymPy-0.9.0rc0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 405bff9397e5237f7a6dc5c547740faeacbb35f360655bf0e54ad7913d1bf34d |
|
MD5 | 7868a16c6f7b7a28485ef4b5f7c9f5fb |
|
BLAKE2b-256 | e53e55587384ed424161eb663e4c59f1e57a62b9567fc56c4e19b342f3c935ac |
Hashes for Algebra_with_SymPy-0.9.0rc0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07902daea0b7c44c24f9b77f2905438ed8c58b456b7f14f8e28d4dda94e559c5 |
|
MD5 | 448a197dbfd36771023740b697982b62 |
|
BLAKE2b-256 | eb1546b5dbf71a7500a0b3849cc51f4e83a99f7f865b1f92c802eb29ba9f7327 |