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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

dxli
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)
Reply | Threaded
Open this post in threaded view
|

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

LordOfBikes
Administrator
Dongxu,

I build it yesterday and had a brief look, it worked nice for me. Well done!

Armin
investing less than half an hour into Search function can save hours or days of waiting for a solution