我正在做一个离岸风能项目,我正在设计一个涡轮机。 这包括定义涡轮机的一些特性
我需要用3个变量求解3个非线性方程组
这3个变量(未知数)为:
a
ai
Bi
给出了其他值
我已经试过使用fsolve
、sym.nonlinsolve
和其他一些工具,但我想不出来
在我最后一次尝试中,我用第三个方程替换了前两个方程中的Bi。我添加了我的最小可重复性示例,用实际数字替换我已知的值:
def prueba(q):
x = q[0]
y = q[1]
f1 = ((2.118182068620592)*(math.degrees(math.cos(math.degrees(math.atan((1-x)/((10.0)*(1+y)))))))*((1)+((0.016313)*(math.degrees(math.tan(math.degrees(math.atan((1-x)/((10.0)*(1+y)))))))))-((x)/(1-x))
f2 = ((2.118182068620592)/((8)*(math.pi)*(16.609991369048576)*(math.degrees(math.cos(math.degrees(math.atan((1-x)/((10.0)*(1+y))))))))*((1)-((0.016313)*(math.degrees(mpmath.cot(math.degrees(math.atan((1-x)/((10.0)*(1+y)))))))))-((y)/(1+y))
return np.array([f1,f2])
guessArray = [0.3329,0.00373]
answer = fsolve(prueba,guessArray)
x = answer[0]
y = answer[1]
print(x,y)
如果有人知道如何解决这个问题,我会非常感激
目前没有回答
相关问题 更多 >
编程相关推荐