Syntax: f(x;y):2x+3y
Example | Syntax | Output |
---|---|---|
dist(x,y)=√(x2+y2) | dist(x;y):sqrt(x^2+y^2) | |
dist(2, 3) | dist(2;3) | 3.606 |
Define functions using a colon : instead of the equals sign =.
Values of functions depend on the values of their variables (even if they are not a parameter).