MathGroup Archive 2006

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

Search the Archive

setting precision locally within module


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