0.0.2 • Published 7 years ago

newton-api-js v0.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

newton-js

newton api wrap to nodejs

API

simplify(String) -> Promise

example :

yield newton.simplify('x(x+1)') // x^2 + x

factorize(String) -> Promise

example:

yield newton.factorize('x^2-x') // x(x-1)

derive(String) -> Promise

yield newton.derive('x^2+2x-1') // 2x -1

findRoot(String) -> Promise

yield newton.findRoot('x^2+3x+2') // [-1, -2]

integrate(String, a, b) -> Promise

yield newton.integrate('x^2+x') // 1/3 x^3+1/2 x^2

// if a and b are given the integrate is defined

yield newton.integrate('x^2+x',0,1) // 1/3 + 1/2

findTangent(String, a=0) -> Promise

yield newton.findTangent('x*x+ x*x*x-3x') // -3 x + -30
0.0.2

7 years ago