Description Usage Arguments Examples
This is a function which takes three arguments, “x”, “y”, and “fun”, which stands for “function”. Arguments “x” and “y” are vectors or matrices, while argument “fun” will has four possible values: “sum”, “subtract”, “divide”, “multiply”.Function mycalc will use conditional statements to choose the correct calculation to make based on the value you argument value given to operator.
1 | mycalc(x, y, fun)
|
x |
A vector or matrice |
y |
A vector or matrice |
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.