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: [mg30883] Re: Preserve natural number "e" using N or SetPrecision
  • From: "Kevin J. McCann" <kevinmccann at Home.com>
  • Date: Sun, 23 Sep 2001 02:16:24 -0400 (EDT)
  • References: <9o973r$cfd$1@smc.vnet.net> <9oc76p$fue$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I get a very strange error if I replace Block with Module in the function
below.

"Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de> wrote in message
news:9oc76p$fue$1 at smc.vnet.net...
> Hi,
>
> NSaveE[expr_, prec___] := Block[{E = ee},
>       N[expr, prec]
>       ] /. ee -> E
>
>
> will do it.
>
> Regards
>   Jens




  • Prev by Date: How Download an additional package?
  • Next by Date: Re: how to write a mathematica program
  • Previous by thread: Re: Preserve natural number "e" using N or SetPrecision
  • Next by thread: Re: Preserve natural number "e" using N or SetPrecision