Shouldn't it at least plot down $(-1)^0$ and $(-1)^1$?
2026-03-26 04:31:45.1774499505
Why doesn't Desmos Graphing Calculator graph $(-1)^x$?
1.5k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
On Desmos on my browser the graph of $(-1)^x$ fluctuates between plotting barely any points, one almost completely filled in line, and two almost completely filled in lines depending on the width of my browser window. Unfortunately when I tried to show this off in class on another similar computer I wasn't able to get anything to show up (it probably depends on screen resolution!)
Roughly speaking, Desmos breaks up the $x$-axis of the viewing window into a bunch of discrete, evenly spaced points, probably one for each pixel, and plugs those values into the function. Desmos is perfectly happy to take some random decimals and plug them into $(-1)^x$, such as:
This seems to be based on reduced fraction representations of the decimals:
Depending on which specific decimals Desmos chooses to plug in, you'll get different looking graphs.