The following table of mathematical operators covers the most basic mathematical functions that are expected to be found in a programming language or its standard libraries:
Operator |
Example |
Description |
---|---|---|
abs |
abs x |
Overloaded absolute value |
acos |
acos x |
Overloaded inverse cosine |
asin |
asin x |
Overloaded inverse sine |
atan |
atan x |
Overloaded inverse tangent |
ceil |
ceil x |
Overloaded floating-point ceil |
cos |
cos x |
Overloaded cosine |
exp |
exp x |
Overloaded exponent |
floor |
floor x |
Overloaded floating-point floor |
log |
log x |
Overloaded natural logarithm |
log10 |
log10 x |
Overloaded base-10 logarithm |
(**) |
x ** y |
Overloaded exponential |
pown |
pown x y |
Overloaded integer exponential |
round |
round x |
Overloaded rounding |
sin |
sin x |
Overloaded sine function |
sqrt |
sqrt x |
Overloaded square root function |
tan |
tan x |
Overloaded tangent function |