Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanstull/groovyalgebra
A simple computer algebra system, implemented in groovy
https://github.com/ryanstull/groovyalgebra
algebra computer-algebra groovy symbolic-algebra symbolic-computation symbolic-math
Last synced: about 1 month ago
JSON representation
A simple computer algebra system, implemented in groovy
- Host: GitHub
- URL: https://github.com/ryanstull/groovyalgebra
- Owner: ryanstull
- License: mit
- Created: 2014-12-13T00:41:52.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-13T07:04:21.000Z (over 9 years ago)
- Last Synced: 2024-07-30T17:49:52.723Z (6 months ago)
- Topics: algebra, computer-algebra, groovy, symbolic-algebra, symbolic-computation, symbolic-math
- Language: Groovy
- Homepage:
- Size: 227 KB
- Stars: 4
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Groovy Algebra
================A simple computer algebra system, implemented in groovy
You can construct different algebraic formula like so
```
import groovyAlg.*
import groovyAlg.parser.*def x = Parser.parse("(4*x+1)^2+2*cos(x)")
```After which you can evaluate the expression by
```
assert x.evaluate(0) == 3
```
or differentiate it!```
def x2 = x.derivative()
```Also expressions are automatically simplified
```
def x3 = Parser.parse("2*x*3*x^3")
assert x3.ToString() == "6x^4"
```That's all for now!