From LibreCAD wiki
Revision as of 06:23, 14 May 2015 by Ravas
The command line has a built in calculator that can be accessed with the cal command.
- pi = 3.14159265359
addition: cal 6+5 subtraction: cal 6-5 multiplication: cal 6*5 division: cal 6/5 six to the fifth power: cal 6^5
square root: cal sqrt(5) cal sqrt(3^2 + 4^2) average: cal avg(6,5)
Note these functions take radians. degrees*pi/180 = radians sine: cal sin(6*pi/180) cosine: cal cos(6*pi/180) tangent: cal tan(6*pi/180)