Class Apfp
In: rapfp/Apfp.rb
Parent: Object
                                                                 ###

   File:     Apfp.rb

   Subject:  Class for arbitrary precision floating point.

   Author:   Dennis J. Darland

   Date:     April 3, 2007

Copyright (C) 2007 Dennis J. Darland#

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Methods

*   **   +   -   /   <   <=   ==   >   >=   about_log10   abs   acos   asin   asin_basic   atan   atan2   cos   cos_err   cosh   cosh_err   display_val   display_val_old   erf   errexpt   errexpt=   errexptadd!   errmant   errmant=   errmanttimes10!   exp   exp_2   exp_err   expt   exptadd!   frac   log   log10   log_basic   log_basic_err   log_basic_init   log_err   lt   makerr   mant   manttimes10!   maybe_zero   neg   new   norm   not_zero   period   seterr!   setrconst   sin   sin_err   sinh   sqrt   sqrt_err   tan   tanh   to_f   to_i   to_s   to_s_err   to_s_main   trunc  

Public Class methods

@mant is mantissa except as a whole number - @expt is exponent (of 10)(negative to produce fractions) - @errmant is mantissa of esimated error (always positive) - @errexpt is exponent (of 10) of estimated error - word.

Public Instance methods

very rough & fast

log base e of any positive value

log base 10 of positive value

log base e of value betwween 0.1 and one

log base e of value beteen 0.1 and 1 for purposes of error calc

log base e for purpose of calculating log_e_10 in initialize

log base e of positive value for purpose of error

[Validate]