含3个未知量的3方程组的非线性系统

2024-06-06 10:54:38 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在做一个离岸风能项目,我正在设计一个涡轮机。 这包括定义涡轮机的一些特性

我需要用3个变量求解3个非线性方程组

要求解的3个方程

3 equations to solve

这3个变量(未知数)为:

  • a
  • ai
  • Bi

给出了其他值

试图解决

我已经试过使用fsolvesym.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)

如果有人知道如何解决这个问题,我会非常感激


Tags: answermathcospruebaf2f1方程degrees