Returns a plot in Cartesian coordinates by calling the function for each value of x
to get the corresponding y value, and drawing a dot at the coordinates.
If the function returns a complex number, plots the real and imaginary parts separately.
plotReIm(...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.
plotReIm(x => x**2 + 5*x + sqrt(-1), 6)