Skip to content

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyCAS

Mini Computer Algebra System using Python

Features

  • Mathematical expression parsing
  • Expression tree visualization
  • Variable substitution
  • And soon(TM) more

Examples

Create an Expression

e = Expression.fromstr('3x+2')
print(e) # + ( * ( 3, x ), 2 )

Visualize the expression tree

from cas import graphing

graph = graphing.fromExpr(e)
graphing.view(graph)

image

Substitute the variable in an expression

f = subs(e, 'x', 5)
print(f) # + ( * ( 3, 5 ), 2 )

Tests

Run all tests:

pyCas $ python -m unittest discover

Run tests from a specific file:

pyCas $ python -m unittest ./tests/filename.py

About

Mini Computer Algebra System using Python

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages