Calculate values for a variable of an implicit function

37 次查看(过去 30 天)
Hi,
I am new at Matlab and I'm trying to extract values of variable y in the given implicit function when I feed it with different values for the parameters : f , r , a.
For example f=0.2 r=0.41 a=0.08
The function is : a=atan(-f*y/(f^2+(1-r)^2-y^2/4)) .
I tried the fzero but it doesn't work probably because I'm not using it correctly.
I would really appreciate any kind of help.
Thanks in advance.
PS.

回答(1 个)

Devineni Aslesha
Devineni Aslesha 2020-5-19
Hi Plato
To calculate the values for a variable of an implicit function, use the below code.
f=0.2;
r=0.41;
a=0.08;
syms y
eqn = a - atan(-f*y/(f^2+(1-r)^2-y^2/4)) == 0;
yVal = vpasolve(eqn,y);
For more information, refer the following link.

类别

Help CenterFile Exchange 中查找有关 Number Theory 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by