Re: Getting rid of the arrow in FindRoot output (newbie question)
- To: mathgroup at smc.vnet.net
- Subject: [mg38826] Re: Getting rid of the arrow in FindRoot output (newbie question)
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 15 Jan 2003 02:19:25 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <b00rmh$pmk$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
p= x/. FindRoot[x + Log[x] == 5, {x, 1}];
Print[p]
??
Regards
Jens
David Jones wrote:
>
> 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