get the value of the function, and its first & second derivative
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 ##
|