calc-cli

0.1.3 • Public • Published

Calc

Calc is a CLI implementation of Algebrite. Most functions avaliable in algebrite can be used in calc.

npm i -g calc-cli

Usage

Oh, how simple it is:

$ calc <operation> <expression>
# or
$ calc <expression>

# some examples
$ calc derivative x^2
  2 x
$ calc 'derivative(x^2)'
  2 x
$ calc 2 ^ 3 + 5
  13

calc

Useful aliases

Alias Operation Usage
d
derivate
derivative derivative d x^2
i
integrate
integral integral i x^2
area
areaunder
defint defit area x^2, x, 1, 2

Quirks

Because of how bash works, if you choose to use reserved symbols, like (, ), or *, you're better off putting your argument in quotations.

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i calc-cli

    Weekly Downloads

    1

    Version

    0.1.3

    License

    MIT

    Last publish

    Collaborators

    • ahafiz