def BinaryOperator (   self,
  rhs,
  c2binary 
)

create new InterpolatingFunction self +-*/ rhs (or any other binary operator) evaluated pointwise

Parameters:
rhs the right hand function for the binary
c2binary the class (NOT an instance) for the binary operator
Returns:
new InterpolatingFunction using the same transformation rules as the parent
Note:
This has different derivatives than a regular binary operator such as C2Product since it is evaluated pointwise and then re-splined. If you want the full derivative information, use C2Product() (e.g.)

Definition at line 1286 of file C2Functions.py.

01286                                            :
01287         "return new InterpolatingFunction self +-*/ rhs (or any other binary operator)"
01288         bf=c2binary(self, rhs)
01289 
01290         yv=[bf.value_with_derivatives(x) for x in self.Xraw] #get array of ( ( y, y', y''), ...)
01291         y=[yy[0] for yy in yv] #get y values only
01292 
01293         f=InterpolatingFunction(self.Xraw, y, lowerSlope=yv[0][1], upperSlope=yv[-1][1],
01294             XConversions=self.XConversions, YConversions=self.YConversions)
01295         f.name=bf.name
01296         return f
    ##


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