Skip to content

Seniatical/Cake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An object orientated mathematical library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages