MathGroup Archive 2003

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

Search the Archive

RE: Getting rid of the arrow in FindRoot output (newbie question)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg38823] RE: [mg38812] Getting rid of the arrow in FindRoot output (newbie question)
  • From: "Harvey P. Dale" <hpd1 at nyu.edu>
  • Date: Wed, 15 Jan 2003 02:19:17 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

David:
	x /. FindRoot[x+Log[x],{x,1}]
	Read section 2.4.1 in the Mathematica book.
	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: David Jones [mailto:djones at REMOVE_THIS.borve.demon.co.uk]
To: mathgroup at smc.vnet.net
Subject: [mg38823] [mg38812] Getting rid of the arrow in FindRoot output (newbie
question)

Hi, this is a newbie question, I am just starting to learn how to use
Mathematica.

How do I get rid of the arrow ("->") from the output when using
FindRoot?

E.g.
           p := FindRoot[x + Log[x] == 5, {x, 1}]
           Print[p]

gives the output

           {x -> 3.69344}

and then if I change

           Print[p]

to

           Print[p + 1]

then the output is

           {1 + (x -> 3.69344)}

I need to have the output as a number so as to be able to put it into
other functions and plot it.

Cheers,

David
--
David Jones


  • Prev by Date: RE: Getting rid of the arrow in FindRoot output (newbie question)
  • Next by Date: Re: non-linear equations not covered by built-in procedures
  • Previous by thread: RE: Getting rid of the arrow in FindRoot output (newbie question)
  • Next by thread: RE: Getting rid of the arrow in FindRoot output (newbie question)