My function is
f[a_, b_] := NIntegrate[Sqrt[(Cos[t] - a)^2 + b^2], {t, 0, Pi}]
I want to calculate g[1,1]
where g[a,b]
is defined as...
g[a_, b_] := Derivative [1, 0][f][a, b]
I get the error
The integrand has evaluated for non-numerical values...
Now I can easily calculate the derivative first and not get an error, but I don't want to do that for a particular reason. I can also use a finite difference formula that I create myself, but I want to use procedures already defined by Mathematica.
Is it possible to avoid this error and calculate the derivative of a numerical integral?
Comments
Post a Comment