Interactive Function Plotter
Enter Python expressions using t as the time variable. The
numpy module is available via np so expressions like np.abs can be used. Built-in
helpers include the constants pi and e, as well as the signals rect, tri, step,
delta, sign, sin, cos, exp,
exp_iwt, inv_t, si and additional
functions (arcsin, arccos, arctan,
sinh, cosh, tanh, gauss). Two
expressions can be plotted simultaneously and separately adjusted with the sliders.
The sliders apply the transformation \(a \cdot f(\frac 1 w \cdot (t - s))\). The shift \(s\) applies a time-shift. The amplitude \(a\) scales the output signal while the width \(w\) scales the time axis to stretch or compress the function.
The rectangle and triangle functions are defined as: $$\mathrm{rect}(t) = \begin{cases} 1,& |t| < \frac 1 2 \\ 0,& \text{else} \end{cases}$$ $$\mathrm{tri}(t) = \begin{cases} 1 - |t|,& |t| < 1 \\ 0,& \text{else} \end{cases}$$