[LON-CAPA-users] re: significant arithmetic

Brad Moffat lon-capa-users@mail.lon-capa.org
Tue, 18 Nov 2008 17:15:26 -0500


Significant figures.

Some people have expressed interest in using significant figures in
answers. Normal numerical representation tends to chop zeros after a
decimal, so calculating answers must be done with strings to preserve the
significance of the numbers.

There is a suite of functions found at 
res/Selwyn/moffat/testArea/Physics/SigFigPack2.library. Editing this file
will list the functions with examples and descriptions (source is
availavble.)

A number of example problems can be found by browsing : 
res/Selwyn/moffat/Basics/DiagnosticTest/.

Brad