Message Boards Message Boards

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

GROUPS:

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
Answer
1 month 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
Answer
1 month ago

btw: sinc is also in the wolfram language as Sinc

POSTED BY: Sander Huisman
Answer
1 month ago

Group Abstract Group Abstract