def powerProcess(self, x, y):
if (not x.astUnit.isNull()) and y.sympy.is_constant():
newUnit = x.astUnit ** float(y.sympy)
else:
newUnit = ASTUnit.null()
return AST(sympy.Pow(x.sympy, y.sympy), newUnit)
############################################
评论列表
文章目录