Seniatical / Cake

An object orientated mathematical library

Home Page:https://cakepy.rtfd.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://cakepy.rtfd.io

License:MIT License


Languages

Language:Python 100.0%