MathGroup Archive 1998

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

Search the Archive

beginner's question -- syntax related?


This works:  Plot[{3-Sqrt[5-4x-x^2],3+Sqrt[5-4x-x^2]}, {x, -5, 0}]

This doesn't:
	ls := {3-Sqrt[5-4x-x^2],3+Sqrt[5-4x-x^2]}, {x, -5, 0}

	Plot[ls, {x,-5,0}]

Somehow, the ls isn't getting taken as the list of two expressions.  I
tried both = and := when creating ls, with the identical effect.

Clearly, I'm missing something about syntax.  Can someone help me?

--John


  • Prev by Date: Simultaneous Polynomial Equations??
  • Next by Date: Re: Corrupt Mathematica Notebooks
  • Previous by thread: Simultaneous Polynomial Equations??
  • Next by thread: Re: beginner's question -- syntax related?