Message Boards Message Boards

[✓]Define sinc[x_]:=Piecewise[{{Sin[Pi x]/(Pi x), {x != 0}},{1, {x == 0}}}]


Hello everyone. I tried to define the following function:

sinc[x_]:=Piecewise[{{Sin[Pi x]/(Pi x), {x != 0}}, {1, {x == 0}}}]

but, when I plot it, the figure is empty. Why and how can I fix this problem?

Plot[sinc[x], {x, -5, 5}]

Thank you for your time.

POSTED BY: Gennaro Arguzzi
10 months ago
sinc[x_] := Piecewise[{{Sin[Pi x]/(Pi x), x != 0}, {1, x == 0}}]
Plot[sinc[x], {x, -5, 5}, PlotRange -> All]

enter image description here

POSTED BY: Valeriu Ungureanu
10 months ago

btw: sinc is also in the wolfram language as Sinc

POSTED BY: Sander Huisman
10 months ago

Group Abstract Group Abstract