Piecewise¶
Defines a piecewise-defined expression from a list of
{value, condition} pairs.
The pieces are held: the value of a piece whose condition is False is never
evaluated, which is what makes the construct usable as a guard. Here 1/x is
not divided by zero:
The same guard keeps a tabulated curve inside its own data range, so querying outside it emits no extrapolation warning: