Returns a plot in Cartesian coordinates by calling the function for each value of x
to get the corresponding y value, and drawing a line between each pair of points.
If the function returns a complex number, plots the real and imaginary parts separately.
Note that since the computation is not symbolic, the lines may not belong to the function.
plotReImLines(...funcs, max?)
funcs variadic
Functions to plot.
A function accepts an x coordinate and must return the corresponding y coordinate.
Each function will be drawn in a different color. The imaginary part of a complex function will be drawn in the same color as the real part, but with reduced opacity.
max optional
If the last argument is a number, it is used as the maximum value of x.
A Plot object.
plotReImLines(x => x**2 + 5*x + sqrt(-1), 6)