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