Skip to content

cplally/CAS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAS: A toy computer algebra system
============

Features:

CAS can differentiate and plot many symbolic expressions (e.g., x^2,
sin(x), etc.) and integrate a few (namely, polynomials and the three basic trig
functions). The differentiator knows about algebraic expressions, plus the
basic trigonometric (sin, cos, tan)  and exponential (exp) functions.

Please bear in mind that CAS is a work in progress -- there will be some bugs,
and it isn't feature-complete. However, it will improve with time.

Usage:

Note: To use CAS, you will need Python 3 and gnuplot.
Here is a usage example:

     from cas import *
     
     f = Expr('sin(x)')
     print(f)
     f.plot(title='Sine', labels=('x', 'sin(x)'), range=((0,6.28), (-1,1)))
     
     print(f.d('x'))
     f.d('x').plot(title='Cosine', range=((0,6.28), (-1,1)))
     
     print(f.integrate('x'))
     f.integrate('x').plot(title='Negative Cosine', range=((0,6.28), (-1, 1)))

About

A toy computer algebra system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages