next up previous contents
Next: Function: LS_phas_and_freq() Up: GRASP Routines: Supernovae and Previous: Structure: LS_physical_constants   Contents


Function: LS_freq_deriv()

void LS_freq_deriv(float t, float u[], float dudt[]) This function gives the derivative of frequency (actually, $u$ which is the frequency divided by the maximum frequency) as a function of time, (see ([*])). The amplitude $\left(\frac{M}{r}\right)^{5/2}
\left(\frac{A}{0.16}\right)^2 \sqrt{\frac{M_{1.4}}{r_{10}}}$ must be declared and assigned a value as an external variable called A.

The arguments are:

t: Input. The time at which the derivative is to be taken.
u[]: Input. An array of initial values (in this case, containing exactly one element) of the dependent variables (in this case, only $u$).
dudt[]: Output. An array of derivatives (in this case, containing exactly one element) of derivates of the dependent variables (in this case, $\partial u /\partial t$).

Authors: Warren G. Anderson, warren@ricci.phys.uwm.edu
Comments: This function is required by numerical recipes odeint. See the numerical recipes manual for more information.



Bruce Allen 2000-11-19