具有 3 个未知数的 3 个方程的非线性系统 - Python 要解决的 3 个方程尝试解决

问题描述

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

我需要用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)

如果有人知道如何解决这个问题,我将不胜感激。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)