npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

newton-api-js

0.0.2 • Public • Published

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

install

npm i newton-api-js

Downloadsweekly downloads

0

version

0.0.2

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability