Skip to content

philippschroeppel/lambda-calculator

Repository files navigation

                                   ,,
 (Ob.                            `7MM
    M                              MM
    db          ,p6"bo   ,6"Yb.    MM  ,p6"bo
   AMA.        6M'  OO  8)   MM    MM 6M'  OO
  AM'`M  mmmmm 8M        ,pm9MM    MM 8M
 ,M'  db       YM.    , 8M   MM    MM YM.    ,
JM'    Yb.      YMbmd'  `Moo9^Yo..JMML.YMbmd'

λ-calc

This is a command line calculator supporting operations with units.

Fancy Features:

  • SI units, no imperial fun system
  • History of calculations
  • Reduction of units
  • Conversion to desired unit

Calculations must be added in one of the following formats

($calculation) [$unitToConvertTo]

or

$calculation

where a calculation can support the binary operations +, -, *, /, ^ and the unary minus -. A calculation is then formed in the way

$number($unit)? ($operator $number($unit)?)*

most importantly a unit within the calculation has to be surrounded by parenthesis.

Docs and Test Coverage

Docs and test coverage come with the source code and can be opened locally.

About

A CLI calculator supporting standard SI units developed during a FP course at University of Ulm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •