- XLogo
| Primitive | Alt | Action |
|---|---|---|
|
Alea
Pi |
|
Return random decimal number between 0 and 1.
Return value of pi (3.14159...) |
|
Absolute
xx
Exp xx Integer xx Log xx Log10 xx Minus xx Random xx Round xx SquareRoot xx |
Abs
Int Ran Rnd Sqrt |
Return
absolute
(positive) value of xx.
Return e (Euler's constant 2.71828...) to the power xx. Return integer part of xx. Return (natural) log of xx, base e. Return log of xx, base 10. Return negated value (invert sign) of xx. Return a random whole number between 0 and xx-1. Return nearest whole number to xx. Return square root of xx. |
|
Difference
aa bb
Divide aa bb Modulo xx yy Power xx yy Product aa bb Quotient xx yy Remainder xx yy Sum aa bb |
Diff
Div Mod Rem |
Return
difference
between aa and bb. (aa - bb)
Return division of aa by bb. (aa / bb) Return modulo of xx divided by yy. Return xx raised to the power yy. Return product (multiplication) of aa and bb. (aa x bb) Return quotient (integer part) of xx divided by yy. Return remainder (decimal part) of xx divided by yy. Return sum of aa and bb. (aa + bb) |
Trig
| Primitive | Alt | Action |
|---|---|---|
|
Cosine
xx
Sine xx Tangent xx ArcCosine xx ArcSine xx ArcTangent xx |
Cos
Sin Tan ACos ASin ATan |
Return
cosine
of angle xx in degrees.
Return sine of angle xx in degrees. Return tangent of angle xx in degrees. Return the angle (range 0-180) whose cosine is xx. Return the angle (range 0-180) whose sine is xx. Return the angle (range 0-180) whose tangent is xx. |
Note