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
- Follow-Ups:
- Re: setting precision locally within module
- From: "Chris Chiasson" <chris@chiasson.name>
- Re: setting precision locally within module