[Maxima] cacheing compiled integrand in quadpack functions

Robert Dodier robert.dodier at gmail.com
Wed Jan 11 13:51:43 CST 2006


hello ray,

the quadpack functions (quad_qags etc) call COMPILE on the
integrand. i'm working on a problem in which i'd like to evaluate
the integrand repeatedly for different limits of integration,
so it seems like the integrand only needs to be compiled once.
does it seem reasonable and practical to put the compiled
integrand into a hash table with the integrand as the key?
the idea is that the integrand would be compiled only if
a table lookup yields nil.

thanks for any advice,
robert




More information about the Maxima mailing list