Divergent integral answer incorrect

Something’s not working the way it seems like it should.

When I input the equation \int_{\pi}^{\infty}\left(\frac{2+\cos\left(x\right)}{x}\right)dx

I saw the answer given by the desmos graphing calculator is 0

But I expected the answer to be undefined, because this integral diverges

Here’s the link to the page, dashboard, or activity: Possible Bug?

1 Like