MathGroup Archive 1998

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

Search the Archive

beginner's question -- syntax related?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg13284] beginner's question -- syntax related?
  • From: john at dlugosz.com (John M. Dlugosz)
  • Date: Fri, 17 Jul 1998 03:18:40 -0400
  • Organization: at home
  • Sender: owner-wri-mathgroup at wolfram.com

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?