Rationalize etc.



>>>>> "Stavros" == Stavros Macrakis <macrakis at alum.mit.edu> writes:

    Stavros> On Tue, Dec 9, 2008 at 9:21 AM, Raymond Toy <raymond.toy at ericsson.com>wrote:
    Stavros> ...I compared its results to results from cf(rationalize(...)),
    >> which are the exact answers.  A little experimentation
    >> 
    >> Note that maxima's rationalize doesn't call ration1.


    Stavros> Exactly.  Rationalize(.23) and rat(.23) are two different things -- by
    Stavros> design.  Rationalize is the exact binary fraction corresponding to a
    Stavros> floating-point number, whereas rat is the simplest rational within
    Stavros> ratepsilon of the argument.

Oh. I was confused on what you were testing.  This makes sense to me
now.

Ray