solving non-linear equation

1 回表示 (過去 30 日間)
friet
friet 2017 年 3 月 26 日
コメント済み: Walter Roberson 2017 年 3 月 26 日
Hi
I am solving for x in this equation.
where J1 is Bessel function of first kind order one. Below s my code, however i am notsure if this is the right way to solve an equation in matlab. can anyone please help me to check my code.
Thanks
clear all
syms x
b=371.05*10^-6;
num=sqrt(-8*b*abs(x));
den=sqrt(-2*b*abs(x));
eqn = 1.4*sqrt((besselj(1,num))/(den))==x;
solvx = solve(eqn,x);
vpa(solvx)

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 3 月 26 日
編集済み: Walter Roberson 2017 年 3 月 26 日
Go directly for vpasolve instead of solve as it is not feasible to expect a closed form solution for that.
  2 件のコメント
friet
friet 2017 年 3 月 26 日
I didn't get your answer. Can you please elaborate a little bit
Walter Roberson
Walter Roberson 2017 年 3 月 26 日
solvx = vpasolve(eqn,x);

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by