Looking for faster ways to make chi^2 nonlinear fit calculations, for
functions involving integrals, I have compared timings of calculation of chi^2
at a pair of sample points evaluating the integrals by three numerical
methods. In the attached worksheet they are called as follows:
1. chin, using evalf(Int(...))
2. chin2, using the interpolant option (`dsolve/numeric`(sys, range=...))
3. chin3, using evalf(Int(...,method=_d01ajc))
I have obtained timings with Maple 9.5 using first a Celeron 333 MHz under RH7.1
and then a P4 1.8 GHz under Win XP.
My expectation was that the method of the interpolant function were the
Is it possible to generate C or Fortran code for a numerically evaluated integral (ie. evalf(Int(...)) )?
with(CodeGeneration):
and either C(..) or Fortran(...) yield the error message:
Warning, the function names {Int} are not recognized in the target language
(a similar error message occurs for an int(..) expression)
Alejandro