To find the derivative of a logarithmic function:
where y = log b u
dy / dx = log b (e) * u ' / u
where u ' = du / dx
http://www.intmath.com/differentiation-transcendental/5-derivative-logarithm.php#derivbases
So, to answer your question, we need to know the derivative of A(t) . If you do not know that A (t) is ahead of time, then you need to come up with some kind of common solver or require that the input include both the function A and its derivative.
public double Log10Derivative(Func<double, double> a, Func<double, double> aPrime, double t) { return Math.Log10(Math.E) * (aPrime(t) / a(t)); }
Regarding the execution of log in the array, I either did not find out about it or forgot how to do it.
Edit
This should give you an approximate value:
public double Log10Derivative(Func<double, double> a, double t) { const double reallySmallNumber = double.Epsilon; var aPrimeEst = (a(t) - a(t + reallySmallNumber)) / reallySmallNumber; return Math.Log10(Math.E) * (aPrimeEst / a(t)); }
Stripling warrior
source share