A fast, repl-style scientific calculator for the web and for the terminal.
-
Evaluation of mathematical expressions:
1920/16*9 2^32 sqrt(1.4^2 + 1.5^2) * cos(pi/3)^2
Supported functions:
acos
,acosh
,asin
,asinh
,atan
,atanh
,ceil
,cos
,cosh
,exp
,floor
,ln
,log
,log10
,round
,sin
,sinh
,sqrt
,tan
,tanh
. -
Parsing and handling of physical units:
2min + 30s 40kg * 9.8m/s² * 150cm sin(30°)
-
Explicit unit conversions
60mph -> m/s 500km/day -> km/h 1mrad -> ° 52weeks -> days 5in + 2ft -> cm atan(30cm / 2m) -> ° 6Mbit/s * 1.5h -> Gb
-
Variable assigments:
r = 6000km vol = 4/3 * pi * r³ density = 5g/cm³ vol * density -> kg
grav = 9.81m/s² L = 20cm 2pi*sqrt(L/grav) -> ms
Predefined constants: speed of light (
c
), Plancks constant (hbar
), ...You can use
ans
(answer) to refer the the result of the last calculation. -
Commands:
help, ? list, ls reset
In addition to the web interface, there is also a command line version which can by installed via npm:
npm install -g insect
bower install
npm install
pulp -w browserify --skip-entry-point -m Insect --standalone Insect -O -t insect.js