f = x -> (1 - x) / (1 + x + x^2)A defined function can be called in the obvious way
f = x -> (1 - x) / (1 + x + x^2) // define a function f(-1) // call the function
A function can have several input arguments. For example
f = (r, theta) -> r * (1 + cos(theta)); // define