-
Notifications
You must be signed in to change notification settings - Fork 0
A toy computer algebra system
License
cplally/CAS
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 0
No packages published