Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

calc-cli

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calc-cli

Calculus in your terminal

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

AliasOperationUsage
d
derivate
derivativederivatived x^2
i
integrate
integralintegrali x^2
area
areaunder
defintdefitarea 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.

Keywords

FAQs

Package last updated on 15 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc