Esempio n. 1
0
    def __init__(self):
        if 'allow_unknown_functions' in LambdaPrinter._default_settings:
            settings = {'allow_unknown_functions': True}
        else:
            # We're on Sympy without "allow_unknown_functions" setting
            settings = {}

        LambdaPrinter.__init__(self, settings=settings)

        self.known_functions = {}
        self.known_constants = {'pi': 'pi', 'Pi': 'pi', 'I': 'I'}
Esempio n. 2
0
 def __init__(self):
     LambdaPrinter.__init__(self)
     self.known_functions = {}
     self.known_constants = {'pi': 'pi', 'Pi': 'pi'}