Esempio n. 1
0
def exp(math_func):
    if isinstance(math_func, MathFunc):
        return math_func.op(op=e)
    else:
        return e(math_func)
Esempio n. 2
0
def exp(math_dict):
    if isinstance(math_dict, MathDict):
        return math_dict.op(op=e)
    else:
        return e(math_dict)
Esempio n. 3
0
 def exprs(self):
     x0, x1, A = self['x0'], self['x1'], self['A']
     return [A*x0*x1-1,
             (e(-x0)+e(-x1)-(1+1/A))]
Esempio n. 4
0
 def expressions(self):
     u, l = self['u'], self['lambda_u']
     return {u: 3*u-4*e(-u)}
Esempio n. 5
0
def exp(math_dict):
    if isinstance(math_dict, MathDict):
        return math_dict.op(op=e)
    else:
        return e(math_dict)