🍉 Calculus (and other stuff) in your terminal
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.editorconfig
.gitignore
README.md
calc.gif
package.json

README.md

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.