MathGroup Archive 1998

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

Search the Archive

RE: Re: I don't unde




I response to the question about
Solve[x/x+x==1,x]  giving  {{x->0}}

Ken Levasseur wrote:
|
|The software explaination is the Solve doesn't have a HoldFirst
|Attribute so it will simplify x/x before evaluation. |

Well it doesn't make a difference even if Solve does have the HoldFirst 
Attribute.
Try the lines below.

In[1]:=
SetAttributes[Solve, HoldFirst];


In[2]:=
Solve[x/x+x==1,x]

Out[2]=
{{x -> 0}}


I think Solve verifies the solution with the Evaluated equation instead
of the Unevaluated equation.

Ted Ersek




  • Prev by Date: memory problems for Mathematica 3 under NT
  • Next by Date: new kernel for NT
  • Prev by thread: memory problems for Mathematica 3 under NT
  • Next by thread: new kernel for NT