get the value of the function, and its first & second derivative
Reimplemented from C2Function. Definition at line 183 of file voigt_profile.py. 00183 : 00184 x=(x-self.center)/self.width 00185 scale=1/(self.width*math.pi) 00186 a=1.0/(1.0+x*x) 00187 return a*scale, -2*x*a*a*scale/self.width, (6*x*x-2)*a*a*a*scale/self.width**2 00188 00189 ll=lorentz() gg=gauss()
|