An object orientated math library
Project description
Cake
An object orientated math library, Built with power and simplicity!
Cake is an object orientated math library based off Sympy and aims to be simple and easy to use. Its main advantages are easy of use, chaining and provides shortcuts to length methods.
License: MIT License (see the LICENSE file for details) covers all files in the cake repository unless stated otherwise.
Features
- Generally is fast and provides simple solutions for complex problems
- Simple to use and learn
- Provides support for algebra and equation substitution
Installation
This library is currently in very early works! It does not have much to offer as of now, but we have a vision to make it full of features!Stable
# Windows
pip install MathCake
# Linux/MacOS
pip3 install MathCake
Development
git clone https://github.com/Mecha-Karen/Cake
cd Cake
pip install .
Quick Example
Quadratic Formula
Note: This is currently just a concept!from cake import Equation
eq = Equation("-b (+|-) sqrt((b ** 2) - 4(a)(c))")
# Top layer of the formula
# (+|-) will return 2 solutions as stated in the documentation
# Its one of the many ways of implements plus or minus
eq.wrap_all("/", "2(a)")
# Puts the entire current formula into brackets and divides by 2a
print(eq.substitute(a=10, b=-20, c=5))
# Results: (1.70711, 0.292893)
Links
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
MathCake-0.0.1a2.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for MathCake-0.0.1a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d3032f4e36d2121470e1a60bea3c65fe31a1d3df3463c5f9cf6886da0ae5da3 |
|
MD5 | c3a0784ff53b3a67d6efbaf10cef0733 |
|
BLAKE2b-256 | cb45d159e8d94414344964ef205134eca47006dd1a20a76a1167237450d307d0 |