Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: How to isolate the constant in a two variable equation?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg113499] Re: How to isolate the constant in a two variable equation?
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Sun, 31 Oct 2010 02:08:47 -0500 (EST)

On 10/30/10 at 4:38 PM, emammendes at gmail.com (Eduardo M. A. M.Mendes)
wrote:

>Many thanks. It works too but it returns curly brackets.

If you want the actual number instead of a list use First, Last or Part. For example

Cases[4 X*X + 3 Y*Y + 2 X*Y + 1, _?(FreeQ[#, X | Y] &)][[1]]

or

Last@Cases[4 X*X + 3 Y*Y + 2 X*Y + 1, _?(FreeQ[#, X | Y] &)]

Bill




  • Prev by Date: How does Plot* functions know about range?
  • Next by Date: Re: Puzzled by a puzzle
  • Previous by thread: Re: How to isolate the constant in a two variable equation?
  • Next by thread: Re: How to isolate the constant in a two variable equation?