def __init__ (   self,
  args 
)

Construct a new C2Function.

Parameters:
args The default (no args) constructs with a range of (1e-308, 1e308). Otherwise, C2Function(another_C2Function) copies the range.
or
C2Function( first_C2, second_C2) sets the range to the intersection of the ranges

Reimplemented from C2Function.

Definition at line 1457 of file C2Functions.py.

01457                                       :
01458         "create the C2InverseFunction from the given function, and set the initial search to be from the center of the domain"
01459         self.fn=sourceFunction
01460         l,r=sourceFunction.GetDomain()
01461         self.start_hint=(l+r)*0.5
01462         # compute our domain assuming the function is monotonic so its values on its domain boundaries are our domain
01463         ly=sourceFunction(l)
01464         ry=sourceFunction(r)
01465         if ly>ry: ly, ry = ry, ly 
01466         self.SetDomain(ly, ry)
01467 
    def set_start_hint(self, hint):


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