I'm doing a project of Off-Shore Wind Energy where I am designing a turbine. This includes to define some of the features of the turbine.
I need to solve a system of 3 non linear equations with 3 variables.
3 equations to solve
The 3 variables (unknowns) are:
a
ai
Bi
The other values are given.
Attempts to solve
I already tried using fsolve
, sym.nonlinsolve
, and a couple more and I can't figure it out.
On my last attempt I substituted Bi from the first 2 equations with the 3rd equation. I add my minimal reproducible example by substituting the values I already know with the actual numbers:
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)
If someone knows how to solve this I would really appreciate it.