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: [mg38851] Re: [mg38812] Getting rid of the arrow in FindRoot output (newbie question)
  • From: Nigel King <king at dircon.co.uk>
  • Date: Thu, 16 Jan 2003 03:18:56 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

> 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}
 p := x/.FindRoot[x + Log[x] == 5, {x, 1}]
 Print[p]

 should give

 3.69344
> 
> and then if I change
> 
>          Print[p]
> 
> to
> 
>          Print[p + 1]
 now gives

 4.69344
> 
> then the output is
> 
>          {1 + (x -> 3.69344)}
-- 
Nigel




  • Prev by Date: Re: Asymptote mystery...
  • Next by Date: Re: Integrating Abs[Sin[]^2]
  • Previous by thread: RE: Getting rid of the arrow in FindRoot output (newbie question)
  • Next by thread: Limiting powers of stochastic and zero-one matrices