Avoid issue "$RecursionLimit::reclim2: Recursion depth of 1024 exceeded"?

Hi! I’m new using the program and I wanted to solve an integral, but the program shows up the next message: “$RecursionLimit::reclim2: Recursion depth of 1024 exceeded during evaluation of -((g [Pi] R^4)/(8 v)).” and I don’t know why, because earlier I tried the same integral and it was ok.

Thank you

There is at least on error: Log[r/(a R)] : you need to use square brackets for the Log function.
What is ‘a’? it has a value now… but what is it?

I tried to do it differently (imagen below) and I put the square brackets this time, but it continue appearing the message of before

all the letters are constants

Without giving ‘a’ it is hard to figure out what is happening…

Also probably you want := here:

U[r_] := …

Please post actual code rather than images, so others can copy and paste should they wish to assist with debugging. Also be sure to include the full code needed to reproduce the problem.

Sander was right. When I changed the “a” (for a capital letter) , it worked.

Thank you all!

So, it appears that your real problem is that you had a bad definition for a. Perhaps something like:

a := 1 + a

That will cause a $RecursionLimit error if you evaluate a. It is good practice when you have a problem like this to quit your kernel and start over, taking care not to redefine anything you don’t need to.