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$Plot[Re[x Exp[i x \[Pi] ]], {x, -1, 1}]
$\endgroup$Plot[n (-1)^Floor[n], {n, -5, 5}]
. $\endgroup$