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 in C2Constant, C2ScaledRecip, and C2InverseFunction.

Definition at line 98 of file C2Functions.py.

00098                               : 
00099         if not args:
00100             self.xMin, self.xMax=-1e308, 1e308
00101         elif len(args)==1: #constructing from a single C2Function
00102             self.xMin, self.xMax=args[0].xMin, args[0].xMax
00103         else: #it should be two C2Functions, and we take the inner bounds of the two
00104             l,r=args
00105             self.xMin=max(l.xMin, r.xMin)
00106             self.xMax=min(l.xMax, r.xMax)
00107         
00108         self.sampling_grid=None
00109     


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