필터 지우기
필터 지우기

system of equations with elliptical integrals

조회 수: 1 (최근 30일)
Nikhil
Nikhil 2013년 11월 5일
답변: Walter Roberson 2013년 11월 5일
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

답변 (1개)

Walter Roberson
Walter Roberson 2013년 11월 5일
Instead of writing 'A=B' use (A)-(B) without quotes.

카테고리

Help CenterFile Exchange에서 Error Functions에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by