WLJS LogoWLJS Notebook

ReImPlot

ReImPlot[f, {x, xmin, xmax}] generates a plot of Re[f] and Im[f] as functions of x from xmin to xmax.

  • ReImPlot[{f1, f2, ...}, {x, xmin, xmax}] plots several functions.
  • ReImPlot[{..., w[fi], ...}, ...] plots fi with features defined by the symbolic wrapper w.
  • ReImPlot[..., {x} ∈ reg] takes the variable x to be in the geometric region reg.

Examples

Plot real and imaginary parts of a complex function:

ReImPlot[Sqrt[x], {x, -2, 2}]

Plot multiple complex functions:

ReImPlot[{Sqrt[x], Log[x]}, {x, -2, 2}]

Complex exponential function:

ReImPlot[Exp[I x], {x, 0, 2 Pi}]

Please visit the official Wolfram Language Reference for more details.

On this page