I was in doubt if this question should be asked in Mathematics.SE or Mathematica.SE, but I've decided this site would be more appropriate, because I think those who read my question here will know about both mathematics and Mathematica.
I tried to plot $n(-1)^n$ with Plot
, but it showed nothing. When I tried to plot it with DiscretePlot
, it worked. Why did that happen?
Plot[]
skips complex values, so... $\endgroup$ – J. M.'s ennui♦ Apr 17 '13 at 0:41Plot[Re[x Exp[i x \[Pi] ]], {x, -1, 1}]
$\endgroup$ – Spawn1701D Apr 17 '13 at 0:42Plot[n (-1)^Floor[n], {n, -5, 5}]
. $\endgroup$ – J. M.'s ennui♦ Apr 17 '13 at 0:45