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.
vaungureanu
(Valeriu Ungureanu)
2
sinc[x_] := Piecewise[{{Sin[Pi x]/(Pi x), x != 0}, {1, x == 0}}]
Plot[sinc, {x, -5, 5}, PlotRange → All]
sghuisman
(Sander Huisman)
3
btw: sinc is also in the wolfram language as Sinc