sympy.powdenest()方法
借助于sympy.powdenest()方法,我们可以用恒等式(x^a)^b=x^ab)来简化数学表达式的幂次。
语法:sympy.powdenest()
Return:使用identity返回简化的数学表达式。
sympy.powdenest()方法 例# 1:
在本例中,我们可以看到,通过使用sympy.powdenest()方法,我们能够使用恒等式i.e (x^a)^b=x^ab来简化数学表达式的幂。
Output :
x**6
sympy.powdenest()方法 例# 2:
Output :