MathGroup Archive 2006

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

Search the Archive

Re: Displaying decimals

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63510] Re: Displaying decimals
  • From: "Steven Shippee" <droukas at comcast.net>
  • Date: Tue, 3 Jan 2006 01:26:06 -0500 (EST)
  • References: <dpb0q8$1ph$1@smc.vnet.net>
  • Reply-to: "Steven Shippee" <slshippee at comcast.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Using your original numbers below, how about something like:

f[x_] := 160.245051009838 + 0.05888359189242*x

then

approx = f[50]

then

SetPrecision[approx, 30]

giving you:

163.189230604458998641348443925 instead of your original 163.189


Hope this helps,

Steven Shippee
slshippee at comcast.net


"Lea Rebanks" <lrebanks at netvigator.com> wrote in message 
news:dpb0q8$1ph$1 at smc.vnet.net...
>
> Given the enclosed function, I can not make Mathematica v5.1 display
> greater than 3 decimals. Please help.
>
> slope[x_]:=160.245051009838+0.05888359189242*x
>
> EG. slope[50] = 163.189
>
> I don't know how or why this is happening.  I have tried N[expr,20] to
> no avail.
>
> Many thanks for your attention.
>
> Lea Rebanks.
> 



  • Prev by Date: Re: Using a palette to speed typesetting
  • Next by Date: Re: List Manipulation
  • Previous by thread: Re: Displaying decimals
  • Next by thread: Re: Displaying decimals