Message Boards Message Boards

0
|
5249 Views
|
3 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Recursion depth of 1024 exceeded during evaluation

Posted 3 years ago

I am trying to multiply 4 matrices. Every other matrix is working fine except one matrix for which it is throwing an error of recursion depth of 1024 is exceeded. I don't know why is this happening. Can anyone tell me how to deal with this problem? code snippet

POSTED BY: Akshay Manthekar
3 Replies

Thanks a lot Hans and John

POSTED BY: Akshay Manthekar

Yeah, when using subscripts, by default, Mathematica recognizes the main symbol and the subscript as separate elements. You can symbolize subscript variables with the Notations package.

When using the Symbolize function of the Notations package, you can symbolize any generic variable with a subscript using f_ ctrl(-) _ . That's two underscores: one after f and one in the subscript. Where f_ stands for any variable and the underscore in the subscript stands for anything.

POSTED BY: John Baxter
Posted 3 years ago

Avoid the subscripts. The line below does not give the error:

d = {{0, 0, 0, 0, d15, 0}, {0, 0, 0, d15, 0, 0}, {d13, d13, d33, 0, 0, 0}}
POSTED BY: Hans Milton
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract