Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

setting precision locally within module

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72447] setting precision locally within module
  • From: jltrahan at mail.usf.edu
  • Date: Thu, 28 Dec 2006 05:11:54 -0500 (EST)

Hello,
I'm trying to define the number of significant figures used for all
calculations within a module. For example, I'm using the following syntax:

gauss[dig_]:=Module[{$Pre=N[#,dig]&},
         For[k=1,k<=n,k++,
            For[i=k+1,i<=n,i++,multiplier=A[[i,k]]/A[[k,k]]]];
         ...]

I must be able to input any number of digits specified. I'd really
appreciate any help.
Thanks in advance,
Jamie


  • Prev by Date: RE: Integration of cumulative distribution function.
  • Next by Date: glibc version problem
  • Previous by thread: Re: Integration of cumulative distribution function.
  • Next by thread: Re: setting precision locally within module