Group Abstract Group Abstract

Message Boards Message Boards

0
|
9.6K Views
|
7 Replies
|
1 Total Like
View groups...
Share
Share this post:

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

Posted 5 years ago

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

Attachment

Attachments:
POSTED BY: Lesly Rojas
7 Replies

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.

POSTED BY: John Doty
Posted 5 years ago

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

Thank you all!

POSTED BY: Lesly Rojas

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.

POSTED BY: Daniel Lichtblau

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

Also probably you want := here:

U[r_] := …
POSTED BY: Sander Huisman
Posted 5 years ago

all the letters are constants

POSTED BY: Lesly Rojas
Posted 5 years ago

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

Attachment

Attachments:
POSTED BY: Lesly Rojas

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?

POSTED BY: Sander Huisman
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard