Bugs and Glitches

Here are the well known bugs and glitches found in Desmos, none were fixed as of the wiki's publication:

Integral Bug

Desmos uses clever tricks to evaluate an integral quite accurately in reasonable time. However, this can fail when evaluating certain integrals. This integral below should evaluate to 0.1:

This one should be pi:

And this one should diverge:

Taken from "!integral" command:

Some possible reasons why Desmos reports these integrals incorrectly:

For finite bounds: Desmos uses 65 initial sample points for tanh-sinh quadrature. If all sample points miss important features of the function (which is often the case with discontinuous functions) the reported value can be incorrect. Graph link: https://www.desmos.com/calculator/06pjqkck2x

For infinite bounds: Desmos applies a rational change of variables to convert the problem to one with finite bounds. However, the transformed integral may still diverge at the bounds (for example, after the change of variables, (sin x)/x oscillates infinitely at the new finite bounds).

Ultimately, all numerical integration schemes use a finite number of sample points, which can lead to incorrect results in some cases. Switching from numerical to symbolic integration would significantly impact performance, and the Desmos developers are still working on ways to address these limitations.

Regression Bug (OUTDATED)

GRAPH LINK

This bug/feature is outdated and isn't really used today because:

  • This is really unreliable and can break suddenly.
  • This feature became official after the introduction of actions and the ticker.

Sampling Bug

Functions in form of y=f(x) are graphed with the following algorithm:

  • Calculate step based on amount of initial samples, this amount is calculated like 1 + 4 * width, where width is screen width in pixels
  • Step through graph from min to max with step
  • For each step we calculate value of function and add that sample to the list
  • If sign of function derivative is changed from previous sample then we start bisecting derivative.

    Derivative bisection runs binary search algorithm, to find where exactly derivative equals to zero. When such point found, we add this point as sample, and also we add point to extremum list, so desmos can display it as POI.

  • In the same way as derivative we search for exact points of jump's and discontinuities and break segment at this point.

So, the resulting curve is actually an approximation based on "sample points" on the real curve. If you try to plot a periodic function with a really high frequency, there might not be enough samples to plot the function reasonably accurately. The image below shows an extreme (and visible) example:

Bernard

Bernard is the well known bug of the implicit function graphing algorithm of Desmos.

CLICK HERE FOR MORE INFO

Miscellaneous

Variable definition bug discovered by u/Subject-Ad-7548, clicking the button to define r doesn't solve the problem:

Function definition bug involving polygon() discovered by u/Absorpy, x and y can be points or lists of numbers but Desmos assumes that they are numbers for some reason and putting the correct data type doesn't work either:

This is just Desmos being silly, pi behaves as x in the expression below, so the derivative of x2 is calculated and then pi is substituted for x.

Data type bug involving recursion and the join() function discovered by u/Mandelbrot4207, happens because the type of the list changes from "empty list" to "list of numbers" during calculation:

Strange error message by u/Arglin (not a bug but nice addition):