newton-cli

0.1.1 • Public • Published

Newton-CLI

A CLI of the awesome Newton API.

to-do: clean up dependencies

Installation

$ npm i -g newton-cli

Usage

Using newton is simple - all you need is an operation and an expression

$ newton -o derive x^2
  2x

newton

Usage: newton <operation> <expression>

Options:

  -h, --help                   output usage information
  -V, --version                output the version number
  -o, --operation <operation>  Type of operation to be executed

There are a variety of operations you can use:

Operation       Eg. Expression       Result        
simplify 2^2+2(2) 8
factor x^2 + 2x x (x + 2)
derive x^2+2x 2 x + 2
integrate x^2+2x 1/3 x^3 + x^2 + C
zeroes x^2+2x [-2, 0]
tangent 2 , x^3 12 x + -16
area 2:4 , x^3 60
cos pi -1
sin 0 0
tan 0 0
arccos 1 0
arcsin 0 0
arctan 0 0
abs -1 1
log 2 , 8 3

Readme

Keywords

none

Package Sidebar

Install

npm i newton-cli

Weekly Downloads

3

Version

0.1.1

License

MIT

Last publish

Collaborators

  • ahafiz