def value_with_derivatives (   self,
  x 
)

get the value of the function, and its first & second derivative

Parameters:
x the point at which to evaluate the function
Returns:
(f(x), f'(x), f''(x))

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()


Generated on Wed Nov 21 10:18:33 2007 for analysis by  doxygen 1.5.4