MathGroup Archive 1997

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

Search the Archive

NSolve


Dear Mathgroupers,

I've found something strange with NSolve in Mma 3.0 (PC and MAC).

Try the following input:

In[1] =  NSolve[ x^2 + x(z+1) == 0 , x]

Out[1] = {{x -> -1.},{x -> 0.}}

In[2] =  NSolve[x^2 + x z + x == 0 , x]

Out[2] = {{x -> 0.},{x -> -1. - 1.z }}

The first output is wrong. NSolve has choosen for me to put z = 0.

OK! NSolve is a numerical command and z has no numerical value, but

why don't NSolve give me something like "No numerical value for z, I put z
= 0" ?

In Mma 2.2, NSolve gives the correct answer.

Thank you for your remarks.

Cheers.

Fred Lang




  • Prev by Date: Re: REQ:Algorythm for combinations
  • Next by Date: conics and graphics
  • Previous by thread: SegmentationFault
  • Next by thread: Re: NSolve