×
Math Cheatsheet
Constants (Case Sensitive):
- PI: Archimedes' constant (π)
- E: Euler's number (e)
Functions (lowercase, e.g., sin(x)
):
- Arithmetic:
+ - * / ^
(power)
- Trigonometric:
sin() cos() tan() asin() acos() atan()
- Logarithmic:
ln()
(natural), log()
(base 10), exp()
(e^x)
- Roots/Power:
sqrt()
, pow(base, exp)
(also base^exp
)
- Misc:
abs() sign() round() floor() ceil()
Parameters:
Lowercase letters a
through z
(excluding x
) can be used as parameters. Their values are set in the "Parameters" section.
Implicit Multiplication:
Multiplication can often be implied (no space needed):
2x
→ 2*x
ax
→ a*x
(if 'a' is a parameter)
xPI
→ x*PI
(a+b)x
→ (a+b)*x
x(a+b)
→ x*(a+b)
2sin(x)
→ 2*sin(x)
If separated by spaces, multiplication is also generally implied, e.g., a sin(x)
→ a*sin(x)
.
Note: For Constant * Constant
or Function * Function
, use explicit *
(e.g., PI*E
, sin(x)*cos(x)
).
Typing PISIN
will not work as PI*SIN
.
Logical Operators:
Can be used in functions for conditional plotting: ? : < > == != && ||