Name | Function | Examplary expressions and commands | ||
In (input command) | Out (resulting output) | |||
! | Factorial | 5! | 120 | |
Pi or π | The number π | π N[%,8] | π 3.1415927 | |
E or е | The number e | e//N | 2.71828 | |
True | Logical constant ‘True’ | True && False | False | |
False | Logical constant ‘False’ | !False | True | |
I or i | Imaginary unit | p=![]() | -10 + 198 I | |
Re[ z ] | Real part of a complex number z | ![]() | -10 | |
Im[ z ] | Imaginary part of z | ![]() | 198 | |
Degree | Measure for angles | 30Degree//N | ![]() | |
Abs[ x ] | Absolute value | Abs[-45] | ![]() | |
Sqrt[ x ] | Square root ![]() | Sqrt[1024.] | 32 | |
Exp[ x ] | Exponential function ![]() | Exp[![]() | 0.731616 | |
Log[x] | Natural logarithm | Log[1.] | 0 | |
Log[b,x] | Logarithm to base b of x | Log[3, 9] | 2 | |
Sin[x ] | Sine x | Sin[![]() | ![]() | |
Cos[x] | Cosine x | Cos[![]() | ![]() | |
Tan[x] | Tangent x | Tan[![]() | 1 | |
Cot[x] | Cotangent x | Cot[30Degree] | ![]() | |
ArcSin[ x ] | Arcus Sine of x | ArcSin[ Cos[![]() | ![]() | |
ArcCos[ x ] | ![]() | ArcCos[ Tan[2.] ] | ![]() | |
ArcTan[ x ] | Arcus tangent x | ![]() | ![]() | |
ArcCot[ x ] | Arcus cotangent x | ArcCot[ 1 ] | ![]() | |
Round[x] | Closest integer to x | Round[2.6] Round[ -2.6] | 3 -3 | |
Mod[n, m] | ![]() | Mod[ 27, 4] | 3 | |
Random[ ] | Pseudorandom number in the interval [0,1) | Random[ ] Random[ ] | 0.08779 0.648845 | |