Question: How to olve system of Non linear equations

Hi, 

I need to solve system of 6 non linear equations. 

Down here you can see the code I wrote and at the end used to fsolve function, and it is not running. I get an error about the const 'V': Error, (in fsolve) V is in the equation, and is not solved for.

What is the right way to solve this system?

Thank you very much!

 

 

omega1 := 1.562;
omega2 := 2.449;
omega3 := 3.325;
y1 := c1*sin(omega1*t+phi1)+c2*sin(omega2*t+phi2)+c3*sin(omega3*t+phi3);

 

 

y2 := .1019*c1*sin(omega1*t+phi1)+.75*c2*sin(omega2*t+phi2)+.4608*c3*sin(omega3*t+phi3);

 

 

y3 := .407*c1*sin(omega1*t+phi1)+(0*c2)*sin(omega2*t+phi2)+1.844*c3*sin(omega3*t+phi3);
 
eq1 := subs(t = 0, y1) = 0;
 
eq2 := subs(t = 0, y2) = 0;
 
eq3 := subs(t = 0, y3) = 0;
 
eq4 := subs(t = 0, diff(y1, t)) = V;
eq5 := subs(t = 0, diff(y2, t)) = 0;
eq6 := subs(t = 0, diff(y3, t)) = 0;

 

 

eqs := [eq1, eq2, eq3, eq4, eq5, eq6];
 
vars := [c1, c2, c3, phi1, phi2, phi3];
 
fsolve({eq1, eq2, eq3, eq4, eq5, eq6}, {c1, c2, c3, phi1, phi2, phi3});
 

 

Please Wait...