Syntax | Operation | Example |
* | Multiplication | 2x or 2*x |
+ – | Addition, subtraction | 2-x or x+2 |
/ | Division | 2/x |
^ | Exponentiation | x^2+2x-3 — draw a parabola x^x — graph of the function y=x^x |
sqrt() | Square root | sqrt(x) — square root of x sqrt(x+5) — square root of x+5 |
abs() | Module | abs(x+2) |
ln() | Natural logarithm | ln(2x) — natural logarithm of 2x |
log | ||
exp() | Exponential (amount e) to a given degree | exp(x) — e to the power x |
sin() | Sine | sin(x) — sin of x |
cos() | Cosine | cos(x) — cosine of x |
tan() | Tangent | tan(x) — tangent of x |
cot() | Cotangent | cot(x) – cotangent of x |
min(a,b) | Minimum | min(x,5) — for x<5 returns x, for x>=5 returns 5 |
max(a,b) | Maximum | max(x,5) — for x<5 returns 5, for x>=5 returns x |
floor() | Rounded down | floor(2/x) |
ceil() | Rounded up | ceil(x^2) |
pi | pi | x*pi |
e | e | x*e |