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 765 of file C2Functions.py.

00765                                        :
00766         x-=self.xcenter
00767         xsum=0.0
00768         for n,c in self.rcoefs: xsum=xsum*x+c
00769         xpsum=0.0
00770         for n,c in self.rcoefs[:-1]: xpsum=xpsum*x+c*n
00771         xp2sum=0.0
00772         for n,c in self.rcoefs[:-2]: xp2sum=xp2sum*x+c*n*(n-1)
00773         
00774         return  native(xsum, xpsum, xp2sum)
00775 
00776         
##


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