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: [mg38821] RE: [mg38812] Getting rid of the arrow in FindRoot output (newbie question)
  • From: "Florian Jaccard" <jaccardf at eicn.ch>
  • Date: Wed, 15 Jan 2003 02:19:12 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello !

Very simple :

p = x /. FindRoot[x + Log[x] == 5, {x, 1}]

Greetings !

Florian Jaccard


-----Message d'origine-----
De : David Jones [mailto:djones at REMOVE_THIS.borve.demon.co.uk]
Envoyé : mar., 14. janvier 2003 12:11
À : mathgroup at smc.vnet.net
Objet : [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: Modifying arguments of sub-parts of an expression
  • Next by Date: RE: Getting rid of the arrow in FindRoot output (newbie question)
  • 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)