An advanced symbolic calculator and maths interpreter
Project description
Equator
A maths interpreter built in Python using SymPy
Features:
- Solve simultaneous equations
- Simplify expressions
- It can do maths faster than you
Installation
Equator can be installed from PyPi. Run the command
pip3 install equatorpy
Usage:
Start-up:
Equator can be run directly through the Python module. Run the command
python3 -m equator
Alternatively, Equator can be invoked directly using the command
equator
The program has been tested on Windows and Linux (Ubuntu), but not MacOS. It might work, but it might not.
- If no arguments are provided, the program launches into a full interpreter, built using the Curses library.
- If it is started with the argument
json
, then its output will be in a JSON format, where each line of input is treated as one set of equations and expressions. Each input will have one line of respective output, in JSON format. - If it is started with the argument
ev
, then it will run a quick evaluation on the following argument. For exampleequator ev "1 + 1"
would print2
.
Syntax:
- Order of operations is respected (including brackets)
- Use standard mathematical syntax (+, -, *, /, ^, =, etc)
- Functional notation is used for unary operators:
|A|
should be written asabs(A)
- Equations or expressions are separated by semicolons
Development
When working with Equator, it is recommended to work with a virtual environment.
After git clone
ing the repository, set up a virtual environment using these
instructions, then install the
required dependencies using the command
pip3 install -r requirements.txt
or if you're on Windows
pip install -r requirements_windows.txt
You should then be able to debug or develop the interpreter normally.
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 equatorpy-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09f70ead7c17bc34a6f57922b6ae401098e7be1716a7995c78b546a2f9756290 |
|
MD5 | d8c5732e9bfd6e72e58a6e25a2e5f196 |
|
BLAKE2b-256 | 4fc04d9537f98f9d30b15254c02d528085c28394aa3d7b9e5c362f838f589764 |