示例#1
0
def exp(math_func):
    if isinstance(math_func, MathFunc):
        return math_func.op(op=e)
    else:
        return e(math_func)
示例#2
0
def exp(math_dict):
    if isinstance(math_dict, MathDict):
        return math_dict.op(op=e)
    else:
        return e(math_dict)
示例#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))]
示例#4
0
 def expressions(self):
     u, l = self['u'], self['lambda_u']
     return {u: 3*u-4*e(-u)}
示例#5
0
def exp(math_dict):
    if isinstance(math_dict, MathDict):
        return math_dict.op(op=e)
    else:
        return e(math_dict)