construct the function, making sure if an argument is passed as a constant that it is converted to a C2Constant
Definition at line 805 of file C2Functions.py. 00805 : 00806 self.left=self.convert_arg(left) 00807 self.right=self.convert_arg(right) 00808 C2Function.__init__(self, self.left, self.right) 00809 00810 if isinstance(left, C2BinaryFunction): p1, p2 = '(', ')' 00811 else: p1, p2='', '' 00812 self.name=p1+self.left.name+p2+self.name+self.right.name #put on parentheses to kepp hierachy obvious 00813 ##
|