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

/newton-api-js/

    Package Sidebar

    Install

    npm i newton-api-js

    Weekly Downloads

    1

    Version

    0.0.2

    License

    ISC

    Last publish

    Collaborators

    • cereceres