Download DraftBoard Unlimited : Reference Guide

Transcript
Appendix
A
Operators and Units
This appendix describes mathematical and conditional operators.
Mathematical Operators
Many entry boxes accept mathematic, trigonometric, and exponential
operators in the form:
funcName (arg1; arg2; . . . ; argN)
Operator
Example
Addition
3+0,5
Subtraktion
3-0,5
= 2,5
Multiplikation
3*0,5
= 1,5
= 3,5
Division
3/0,5
=6
Square Root
sqrt(2)
= 1,4142...
Parenthetical
3/(4+(1/0,5))
= 0,5
Scientific Notation
4e-3
= 0,004
Exponentiation
exp(2;7)
= 128
Sine of Angle
sin(30)
= 0,5
Cosine of Angle
cos(60)
= 0,5
Arctangent
atan(1;1)
= 45 (°)
Log (Base 10)
log(100)
=2
Natural Log (Base e)
ln(2)
= 0,6931
Remove Fractional Part
truncate(1,4142) = 1
Absolute Value
abs(-2)
=2
Smallest Larger Integer
ceiling(1,4142)
=2
Largest Smaller Integer
floor(1,4142)
=1
Negative Value
neg(2)
= -2
Round
round(1,41)
=1
Random Number
rand()
= (random number)
For divisions also a colon
may be used instead of a
slash.
Math operators are case-sensitive; so be sure to type them in lower
case when you use them. You can use these operators to edit objects,
make entries in the status line, and specify values in dialog boxes.
301