0
f[x_] := 2/(2x+2)
Limit[
    Sum[
        deltaX = 1/n;
        xk = 0 + k * deltaX; 
        f[xk]*deltaX, 
        {k, 1, n}
    ],
    n-> \[Infinity]
]

I have the following code however, It doesn't work. The error: $RecursionLimit::reclim: Recursion depth of 256 exceeded

The function is defined on the interval [0, 1]

kjanko
  • 552
  • 1
  • 5
  • 24

1 Answers1

1

Worked fine. Perhaps you had set variables in memory.

enter image description here

Chris Degnen
  • 8,443
  • 2
  • 23
  • 40