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

01472                                        : 
01473         "return the sought value, and update the start_hint so evaluations at nearby points will be very fast"
01474         l,r=self.fn.GetDomain()
01475         y = self.fn.find_root(l, r, self.start_hint, x)
01476         y0, yp, ypp=self.fn.value_with_derivatives(y)
01477         self.start_hint=y #always start looking near previous solution, unless value is reset explicitly
01478         return y, 1.0/yp, -ypp/yp**3 #appropriate inverse derivs from MMA
01479 


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