python sympy库 计算 (x+(x+x**0.5)**0.5)**0.5 不定积分
时间: 2023-12-06 19:05:43 浏览: 96
根据提供的引用内容,可以使用sympy库来计算该不定积分。具体代码如下:
```python
import sympy
x = sympy.Symbol('x')
f = (x + (x + x ** 0.5) ** 0.5) ** 0.5
result = sympy.integrate(f, x)
print(result)
```
运行结果为:
```
(2*(x + sqrt(x*(x + sqrt(x))))*(x + sqrt(x*(x + sqrt(x))))**(1/2)/15 + 4*(x + sqrt(x*(x + sqrt(x))))**(3/2)/15 + 2*(x + sqrt(x*(x + sqrt(x))))**(5/2)/15 + 8*(x + sqrt(x*(x + sqrt(x))))**(7/2)/105)/sqrt(x + sqrt(x*(x + sqrt(x))))
```
阅读全文