Multivariate Derivative
Supriya Balaji
f(t) = Amplitude*(1 - exp(-t/Rise))*exp(-t/Fall) + Offset
with Rise and Fall time constants.
I need to find the numerical derivative of this function with respect to the following parameters
1) Rise
2) Fall
3) Offset
4) Amplitude
Is there a way Igor can do this?
The partial derivatives exist analytically. By example: (df/dR) = -A*t*exp(-t/R)*exp(-t/F)/R^2. Fit your measured data to the equation and obtain A, R, F, and O. Generate a wave to show the derivative equation using the fit coefficients.
dfdR = -A*x*exp(-x/R)*exp(-x/F)/R^2
display dfdR
BTW, (df/dO) = 1 and (df/dA) = 1. Why would you want these?
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH
November 2, 2016 at 09:44 am - Permalink
November 2, 2016 at 09:59 am - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
November 3, 2016 at 12:04 pm - Permalink
* fit your data to the model
* extract the fit parameters
* create a new wave called the "x-wave", one for each parameter
* numerically differentiate the y-data with respect to each x-wave
So, let's suppose that you have fit the data to your equation and have determined A, R, F, and O. You have stored the values in variables vA, vR, vF, and vO. You have your data in a wave called fwave. Here's how to get dfdA numerically.
xAwave = vA
differentiate fwave /X=xAwave /D=dfdA
...
John please correct me if I am wrong in any of this.
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH
November 3, 2016 at 05:48 pm - Permalink