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 defines 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 in a running python session issue
the following command : 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.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3215ef0ac54b842106e4e14a8ef7c0d428c33d2eafcdcd3bd4fbcd1071d5cebe |
|
MD5 | 599447b4e302b3c371f5646043307ba9 |
|
BLAKE2b-256 | 3a04ab5a0a7c58d2bd8fb1a2848eb0c2a997eeadeaaf9aaffb1835bc30b61a8a |
Hashes for Algebra_with_SymPy-0.9.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33178e0b98961217225774d2ae57a3101769e25d99229e5d01e91602167d74fd |
|
MD5 | d12bf67bf67defd992914091cb8bc30c |
|
BLAKE2b-256 | 5318c5f8615edc48b1a86c5ad3c13d9f5cc5110cbc18dcea997b2863d50774f5 |