MathGroup Archive 2001

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

Search the Archive

Re: Preserve natural number "e" using N or SetPrecision

  • To: mathgroup at smc.vnet.net
  • Subject: [mg30855] Re: [mg30781] Preserve natural number "e" using N or SetPrecision
  • From: BobHanlon at aol.com
  • Date: Thu, 20 Sep 2001 03:52:05 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 2001/9/19 12:45:20 AM, guillerm at aida.usal.es writes:

>When it is used N or SetPrecision in expresions involving the natural
>number "e" Mathematica gives the output showing "e" as a numeric value
>i.e: 
>
>int[]:=N[0.19884 Exp[-2.0000000037 t], 5]
>
>out[]:=0.19884 2.71828^(-2. t)
>
>or
>
>int[]:=SetPrecision[0.19884 Exp[-2.0000000037 t],3]
>
>out[]:=0.199 2.72^(-2. t)
>
>But I wish see in the output the simbolic notation of "e" better than
>the numeric value. Any help?
>

0.19884 Exp[-2.0000000037 t] /. 
    x_?NumberQ :> N[x, 5]

0.19884 Exp[-2.0000000037 t] /. 
    x_?NumberQ :> SetPrecision[x, 3]


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: Re: how do i make a function to convert base 2 representation to base-10?
  • Next by Date: Combinatorica
  • Previous by thread: Preserve natural number "e" using N or SetPrecision
  • Next by thread: Re: Preserve natural number "e" using N or SetPrecision