system of equations with elliptical integrals
1 次查看(过去 30 天)
显示 更早的评论
Hello all,
I want to solve for 3 variables x,y,z. Three equations for these variables are as follows:
m=1-1/(x^2);
[Ki Ei]=ellipke(m);
eq1='((x^2+1)*z-y*2)/((x^2-1)*z)=0.9408';
eq2='y=Ki';
eq3='z=Ei';
[x0, y0, z0]=solve(eq1,eq2,eq3);
eq2 and eq3 are complete elliptical integrals of first and second kind. I have defined these integrals as variables because these are used in eq1. after running above code I am getting following error:
??? Error using ==> ellipke at 34 Inputs must be floats, namely single or double.
Can somebody suggest me what errors I am making in the code?? My aim is to solve for x,y,z. I have solved this using fsolve which requires initial guess of the solution. I want to solve for x,y,z without initial guess of the solution
Thanks in advance,
Nikhil
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!