A step function to illustrate the piecewise() function of Math:

The plotting function can be written

plot( x => piecewise( [], ... )(x), [] )

if more clarity is desired in explicitly indicating the argument of the piecewise function.

Complete code for this example:





Examples Page