by Dennis Darland dennis.darland@yahoo.com
dennisdarland.comNOTE(3/25/2007) : Different e-mail address (old forwarded address stopped working sometime in the past).
Comments welcome
Initially developed as procedures in Icon then reworked as classes & overloaded operators in Unicon.
Reworked much more elegantly in Ruby. Mostly because of greatly increased knowledge of problem from having done it before. Also conciseness of Ruby.
Online Real Calculator using Apfp (with Ruby on Rails)
Online Complex Calculator using Apfp (with Ruby on Rails)
Note: I fixed a lot in doing this calculator and it has now been incorporated into the release RubyApfp13.tgz. I plan to do still more extensive testing on RubyApfp. It is so much easier.
Provides class for Reals. This class uses a Float for both the value and possible error. Error is calculated from differentials. This can be just round off error or error in knowedge of the true value which may me significantly larger than the round off error.
Provives similar class for Apfp using large Fixnum - Ruby's built in large integers for mantisa and exponents for both value & error. Same capabilities otherwise as Real.
Also provides Apc class for complex which may use either Real or Apfp.
Which class to use is determined by NUM_DIGITS in ApConfig.rb. If this is > 16 Apfp is used, otherwise Real is used.
Sourceforge Project Apfp page APFP PAGE
To Download RubyApfp13.tgz: RubyApfp13.tgz
NOTE: when downloading make sure you get the suffix ".tgz" In windows Vista I had to go to 'Windows explorer -- organize -- Folders and search options --view--- hide extensions for known file types` and deselect it.
Sourceforge Project Sode Page (Ruby version 10 is now available). SODE PAGE
Dennis J. Darland