![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175085/image.png)
vpasolve for numerical solution
1 回表示 (過去 30 日間)
古いコメントを表示
Hello I am trying to find a solution to the equation:
1= 0.95*2*invtan(4.5/2*r)*r/(4.5)
for the unknown r that satisfies the equality or comes as close to it as possible
I have tried using vpasolve by entering this into matlab:
syms r
vpasolve(0.95 * 2 * atan((4.5)/(2*r)) * r / (4.5) == 1,r)
but I come up with matlab saying
[ empty sum ]
I want to use matlab to solve this, can anyone help?
0 件のコメント
回答 (1 件)
Mischa Kim
2014 年 6 月 12 日
編集済み: Mischa Kim
2014 年 6 月 12 日
Richard, it seems the equation you posted cannot be satisfied.
0.95 * 2 * atan((4.5)/(2*r)) * r / (4.5) == 1
or
0.95 * 2 * atan((4.5)/(2*r)) * r / (4.5) - 1 == 0
which I am calling f in the following.
r = -300:0.1:300;
f = 0.95*2*atan((4.5)./(2*r)).*r/4.5 - 1;
plot(r,f)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175085/image.png)
In other words, there is no r for which f = 0.
0 件のコメント
参考
カテゴリ
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!