Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Apparent error in Mathematica?' topicStudent Support Forum > General > "Apparent error in Mathematica?"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda ben-shimol
09/26/10 03:28am

Well, obviously the two expressions are not identical when you assign a value for x before and after the evaluation.
Before evaluation you call A1[3,2] while after evaluation you call A1[3,x]/.x->2

now, if you notice, during the evaluation of the recursive expressions the recursion uses expressions of the for A1[i,k] AND A1[i,x]

For A1 the expressions are identical while for A2 they are not and this is the cause of the difference

look at the attached notebook. I hope it will help you to sort out the problem


Attachment: compar.nb, URL: ,

Subject (listing for 'Apparent error in Mathematica?')
Author Date Posted
Apparent error in Mathematica? Anixx 09/22/10 9:28pm
Re: Apparent error in Mathematica? yehuda ben-s... 09/26/10 03:28am
< Previous CommentHelp | Reply To Comment | Reply To Topic