MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Evaluation details



Hi,

that's right the right hand side is not evaluated and x is given the 

value x+1. You can verify this by using Information[x]. But now comes 

the pattern matcher and tries to evaluate the resulting expression x+1. 

And it is here where the recursion happens.

hope this helps, Daniel



Mumbo Jumbo wrote:

> Hello,

> 

> I am quite puzzled why a Mathematica statement

> x=x+1;

> causes infinite recursion. Since the ducumentation states that the lhs of

> this statement is not evaluated, it seems to me that the evaluation of the

> rhs should not lead to recursive evaluation.

> TIA, Yuri.

> 

> 




  • Prev by Date: Fast way to select those elements from a list that are in another
  • Next by Date: floating point issue
  • Previous by thread: Re: Evaluation details
  • Next by thread: Re: Evaluation details