chat gpt 给的程序
from sympy import symbols, integrate, simplify, exp
# 定义符号
q, L, x, E, b, t1, t2, h1, h2 = symbols('q L x E b t1 t2 h1 h2')
# 定义函数
f = (q*L*x-q*x**2/2)/(E*(b/6*(t1**3)+t2/12*((h1+h2*x/L-h1*x/L) -2*t1)**3+b*t1/2*((h1+h2*x/L-h1*x/L)-t1)**2))
# 计算不定积分
integral = integrate(f, (x, 0, L), (x, 0, L))
# 简化结果
simplified_integral = simplify(integral)
print(simplified_integral)
--
FROM 103.216.43.*