(self, **hints)
return self.func(*newargs)
Evaluate this piecewise function.
Evaluate this piecewise function.
Evaluate this piecewise function .
def doit(self, **hints):
        """
        Evaluate this piecewise function.
        """
        newargs = []
        for e, c in self.args:
            if hints.get('deep', True):
                if isinstance(e, Basic):
                    e = e.doit(**hints)
                if isinstance(c, Basic):
                    c = c.doit(**hints)
            newargs.append((e, c))
        return self.func(*newargs)
def doit ( self , * * hints ) : newargs = [ ] for e , c in self . args : if hints . get ( 'deep' , True ) : if isinstance ( e , Basic ) : e = e . doit ( * * hints ) if isinstance ( c , Basic ) : c = c . doit ( * * hints ) newargs . append ( ( e , c ) ) return self . func ( * newargs )