We have moved to https://dokuwiki.librecad.org/
Lots of content was already moved to the new wiki, but there is still work to do. If you want to contribute, please register a new account at https://dokuwiki.librecad.org/
This wiki will be kept for a while to keep search engine results valid. Moved sites may be deleted here in future.
Difference between revisions of "Calculator"
From LibreCAD wiki
(created calculator page (more to come)) |
(showed that you can use the d or deg prefix) |
||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
+ | <div style="margin-left: 5%; width:512px;"> | ||
The command line has a built in calculator that can be accessed with the '''cal''' command. | The command line has a built in calculator that can be accessed with the '''cal''' command. | ||
Line 45: | Line 46: | ||
cosine: | cosine: | ||
− | cal cos( | + | cal cos(6d) |
tangent: | tangent: | ||
− | cal tan( | + | cal tan(6deg) |
</pre> | </pre> | ||
Line 54: | Line 55: | ||
* [http://muparser.beltoforion.de/mup_features.html#idDef2 Full list of functions] | * [http://muparser.beltoforion.de/mup_features.html#idDef2 Full list of functions] | ||
* [https://en.wikipedia.org/wiki/Trigonometric_functions Trigonometric functions] | * [https://en.wikipedia.org/wiki/Trigonometric_functions Trigonometric functions] | ||
+ | </div> | ||
+ | |||
+ | [[Category:Usage]] |
Latest revision as of 03:00, 4 June 2016
The command line has a built in calculator that can be accessed with the cal command.
Constants:
- pi = 3.14159265359
Operators:
addition: cal 6+5 subtraction: cal 6-5 multiplication: cal 6*5 division: cal 6/5 six to the fifth power: cal 6^5
Functions:
square root: cal sqrt(5) cal sqrt(3^2 + 4^2) average: cal avg(6,5)
Trigonometric functions:
Note these functions take radians. degrees*pi/180 = radians sine: cal sin(6*pi/180) cosine: cal cos(6d) tangent: cal tan(6deg)
Extra info: