Skip to content

augmify/insect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

insect

A fast, repl-style scientific calculator for the web and for the terminal.

insect

Features

  • 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
    

Install

In addition to the web interface, there is also a command line version which can by installed via npm:

npm install -g insect

Build

bower install
npm install
pulp -w browserify --skip-entry-point -m Insect --standalone Insect -O -t insect.js

Packages

No packages published

Languages

  • PureScript 60.0%
  • CSS 27.9%
  • HTML 8.4%
  • JavaScript 3.7%