calc-cli
v0.1.3
Published
Calculus in your terminal
Downloads
1
Readme
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
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.