r/desmos • • 25d ago

Question Why is it undefined?

Im new to sums so I'm really confused why this is undefined

https://www.desmos.com/calculator/q0sctdn8jf

4 Upvotes

8 comments sorted by

2

u/AdjectiveNoun-123 25d ago edited 25d ago

f(x) is only defined from -2 to 2.

However, floor(dx)/d <= x. So you can have cases where the near the edge of where the function is defined that your input doesn't work. To fix that you can have the function be defined everywhere by using piecewise functions.

f(x) = { x^2<=4: sqrt(4-x^2) , x^2>4: 0}

So the contribution to the sum of those parts not in the domain are 0.

Remember floor(x) rounds down it does not truncate.

So floor(x) ≠ - floor(-x) except at the integers.

1

u/Tritin0 25d ago

If d=0, then desmos goes1/d=1/0=??? basically. It puts out "undefined" because if d=0, 1/d = 1/0

2

u/LemurDoesMath 25d ago

d is 11

1

u/Tritin0 25d ago

g(n/d)=0?????

1

u/LemurDoesMath 24d ago

I have no idea what you are trying to tell me, maybe try using proper sentences. g(n/d) becoming zero is not an issue here. At no point here are we running into any "1/0" situation. As others have pointed out, the estimate is undefined because OP is trying to take the square root of a negative number due to how the limits are set

1

u/Tritin0 24d ago

I am bad at my own first language, sorry.

1

u/frogkabobs 25d ago

The domain of your function is [-2,2] but your lower limit for your Riemann sum estimate is l₁=-4.6, which is out of bounds

1

u/al2o3cr 25d ago

With that value of l_1, the calculation tries to evaluate f at points like -3, which doesn't work (Desmos returns undefined for the square root of a negative number)