MathGroup Archive 2002

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

Search the Archive

RE: Using % in ; separated commands

  • To: mathgroup at smc.vnet.net
  • Subject: [mg35895] RE: [mg35889] Using % in ; separated commands
  • From: "Harvey P. Dale" <hpd1 at nyu.edu>
  • Date: Wed, 7 Aug 2002 05:59:12 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Kaustubh:
	Try this:
a /. Last[Solve[Sin[a] == 0.4717 * Sin[(Pi/3) - a], a]]
	Best,
	Harvey
Harvey P. Dale
University Professor of Philanthropy and the Law
Director, National Center on Philanthropy and the Law
New York University School of Law
Room 206A
110 West 3rd Street
New York, N.Y. 10012-1074

-----Original Message-----
From: Kaustubh Raghukumar [mailto:kausmic at yahoo.com] 
To: mathgroup at smc.vnet.net
Subject: [mg35895] [mg35889] Using % in ; separated commands

Hi,
I have been using Mathematica for basic stuff so far
and find myself lost on how to acheive the following:

I need to extract the last numerical value of 'a' in
Solve ( without the 'a ->'), so I can use it
elsewhere, without having to type it in. Here is what
I wrote

Solve[Sin[a]==0.4717 * Sin[(Pi/3)-a],a]; Last[a /. %]

The problem is that the value in '%' is not the output
of Solve, but the whatever operation came before that!
Any help on how to extract the last numerical from
solve will be greatly appreciated.

Thanks a lot,
Kaustubh


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________


  • Prev by Date: RE: plot several functions
  • Next by Date: Re: Installing package "SpreadOption`"
  • Previous by thread: RE: Using % in ; separated commands
  • Next by thread: Re: Using % in ; separated commands