Serge D. Mechveliani wrote:
>
> Anyway, here is the example:
> in my DParse.zip on the Web, using `pretend' for Fraction Int
> saves 1/15 of the time for parsing of f :: UP(x, Fraction INT)
> (test2Fr)
> (this is curious, because 0 < num, den < 9 in the coefficients).
Not so curious: you save a call to '/' in Fraction.
Calling functions from domain which are computed at runtime inside
a function is much more expensive than normal call using domains
which are computed "at constuctor toplevel": the second case
is cached, the first pays cost seach for correct function per
each call.
--
Waldek Hebisch
[email protected]
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en.