Login  Register

command line calculator, "cal 1+sin(1)"

Posted by dxli on Nov 22, 2014; 3:00am
URL: https://forum.librecad.org/command-line-calculator-cal-1-sin-1-tp5710714.html

Since we are already using muParser to handle math expressions, we can expose muParser to end users.

Implemented by commit:

https://github.com/LibreCAD/LibreCAD/commit/e6d4f7b779a964b001002a28de7f1b35ddabb5e5

some examples of using this feature, type in command line,

cal 1+1
cal sin(1)
cal exp(1)