|
Expressions
Operations
3D Grapher recognizes the following arithmetic operations:
"+" - addition
"-" - subtraction
"*" - multiplication
"/" - division
"%" - residue of division
"^" - exponentiation
Example: 2+5*6-16/2^3=30
Functions
You can use different functions in the expressions. To apply a function you should use the following syntax: <name_of_function>(<argument_1>;<argument_2>...). Note that if a function has more than one argument, they must be separated by semicolons.
Examples: sin(u+2); log(log(1/v)); sin(t)^3; max(u;v+2).
3D Grapher allows to use the following functions:
| abs |
absolute value |
| ceil |
the smallest integer that is greater than or equal to a number |
| floor |
an integer part of a number |
| int |
rounds number to the closest integer |
| exp |
exponent (exp(x) - e raised to the power x) |
| log |
natural logarithm |
| sqrt |
square root |
| sin |
sine |
| cos |
cosine |
| tan |
tangent |
| asin |
inverse sine |
| acos |
inverse cosine |
| atan |
inverse tangent |
| sinh |
hyperbolic sine |
| cosh |
hyperbolic cosine |
| tanh |
hyperbolic tangent |
| min |
the minimum value of 2 arguments |
| max |
the maximum value of 2 arguments |
Priority of operations and functions
- Functions
- ^
- *,/,%
- +,-
Functions have the largest priority; "+", "-" - the smallest. You can use parentheses to group operations with lower precedence to be calculated before operations with higher precedence.
Variables
You can use 1, 2, or 3 variables (u, v, and t). |