Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 1.13 KB

README.md

File metadata and controls

49 lines (40 loc) · 1.13 KB

Cake logo

Documentation Status

Cake is a WIP computer algebraic system, which utilises pythons OOP to create powerful objects which can be used to simulate mathmatical expressions.

Documentation

You can view our documentation for cake here.

Installation

## Windows
pip install -U git+https://github.com/Seniatical/Cake

## Linux/Mac
pip3 install -U git+https://github.com/Seniatical/Cake

Basic Usage

from cake import *

x, y = Variable.many('x', 'y')
expr = x + y
print(expr.solve(x=5, y=3))
# 8

Integrating with functions

from cake import *

x = Variable('x')
expr = Sqrt(x ** 2 + 3 * x)
print(expr)
# Sqrt(x**2 + 3x)
print(expr.evaluate(x=3))
# 3*Sqrt(2)
print(expr.evaluate(x=3).true_value())
# 4.242640687119286