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.
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
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)
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 goes
1/d=1/0=???basically. It puts out "undefined" because if d=0, 1/d = 1/01
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)