|
When executing mult_xreal procedure with precfunc implementation, the use of an exact rational intervals passed as arguments results in a very low execution time. However when using rational_power->xreal to pass arguments that have more elaborate precision functions, it's obvious that most of the time is spent retrieving the necessary decimal expansion. Are there any ways to find a middle ground between having most of the execution time being spent on getting the precision than the actual multiplication and spending too little time on getting the precision? I guess partially i'm trying to ask whether we should be measuring the multiplication mechanism or the precision mechanism. Since it's possible to separate the two (i.e. clock the time it takes to create a precfunc vs. clocking the time it takes to create the function and evaluate the result to a certain precision.) In the tristream implementation, a simple exact rational like 1/2 is a repeating infinite stream. Therefore multiplication becomes slower than in the precfunc implementation. So this also raises the question of how to compare the two implementations when a number like 2^.5 can't even be represented in the tristream implementation (i think)... I'm sorry I can't phrase my confusion/questions in a more readable form. |
Try to estimate cost of ratintvl operations and also determination of precision by Mike O'Donnell, 2002, Nov 24
Distribution of time cost depends on the operation by Mike O'Donnell, 2002, Nov 24
Slowness of tristream is probably not due to infinite expansions of rationals by Mike O'Donnell, 2002, Nov 24
tristream can represent all of the computable real numbers by Mike O'Donnell, 2002, Nov 24
to: