I need your help with programming. Here is my system of equations:
f_1(x1, x2) = 89.3885624 + 169.6377442*x1 + 169.439564*x2
+ 65.07923*((3*x1*(-a1-sqrt(a1^2 - 4*a0*a2)/(2*a2) +0.55071844)/3*x2)
+ 162.698313*((-a1-sqrt(a1^2 - 4*a0*a2))/2*a2)
+ 174.39264*x1*((3*x1*(-a1-sqrt(a1^2 - 4*a0*a2))/(2*a2) +0.55071844)/3*x2)
+ 174.39264*x2*((-a1-sqrt(a1^2 - 4*a0*a2))/2*a2)
+ 72.077218*x1*((-a1-sqrt(a1^2 - 4*a0*a2))/2*a2)
+ 189.511738*x2*((3*x1*(-a1-sqrt(a1^2 - 4*a0*a2)/(2*a2) +0.55071844)/3*x2)
and
f_2(x1,x2) = 78.183644 + 26.71298*x1 + 66.782413*x2
- 169.637744*((3*x1*(-a1-sqrt(a1^2 - 4*a0*a2)/(2*a2) +0.55071844)/3*x2)
- 169.439564*((-a1-sqrt(a1^2 - 4*a0*a2))/2*a2)
- 174.39264*((3*x1*(-a1-sqrt(a1^2 - 4*a0*a2)/(2*a2) +0.55071844)/3*x2)^2
- 261.5889567*((3*x1*(-a1-sqrt(a1^2 - 4*a0*a2)/(2*a2) +0.55071844)/3*x2)
*((-a1-sqrt(a1^2 - 4*a0*a2))/2*a2)
- 174.39264*((-a1-sqrt(a1^2 - 4*a0*a2))/2*a2)^2
- 54.306279*x1*((-a1-sqrt(a1^2 - 4*a0*a2))/2*a2)
+ 54.306279*x2*((3*x1*(-a1-sqrt(a1^2 - 4*a0*a2)/(2*a2) +0.55071844)/3*x2)
a0
, a1
and a2
are equations with variables x1
and x2
.
These two equation needs to be equal to 0 or very close to 0
. I want to use Newton-Raphson method, but I do not know how. On the internet I find a lot of examples but they use easier system of equation as is mine.
Sorry for my bad English and thank you for your help!