Login  Register

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

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

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

dxli
1985 posts
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
| More
Print post
Permalink

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

LordOfBikes
Administrator
1119 posts
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