## Command-line calculator

Any time you are entering a number, length, point coordinate, or angle, you can use a math formula.

In addition to addition, subtraction, multiplication, division, you can also use parenthesis and math functions.

#### Examples:

- If you need the number pi (3.14159...), type pi.
- When prompted for a point, to get a point 10 units from the origin rotated counter-clockwise 30 degrees, type: 10*sin(30degrees),10*cos(30degrees)
- When prompted for any coordinate or length, append any metric or US customary length unit or abbreviation that makes sense any of the languages Rhino supports. For example:

10m

10meter

10meters

10metros

10metre

10metres
- When prompted for any angle value, append any angle unit name makes sense any of the languages Rhino supports. For example:

30d

30degrees

pi

pi/2radians

100gradians

15d30'22.3450" (arc degrees, arc minutes, arc seconds)

22' (22 arc minutes)
- When the number pi (3.14159....) is needed, type pi or the Greek letter π.
- You can use formulas like (10*sin(pi/4) + 63.00)/1.234e12+-56.3 (no spaces in formulas).

More generally, a formula can contain:

unary +, unary -,

arithmetic: addition, subtraction, multiplication, division

parentheses

math functions: sin, cos, tan, asin, acos, atan, atan2, ln, log10, exp, sinh, cosh, tanh, pow, sqrt

numbers, including integer-dash-fraction formatted numbers as in 1-3/4 for 1.75

Command Line Math

Rhinoceros 6 © 2010-2020 Robert McNeel & Associates. 21-Feb-2020