parametrization of an ellipse
2 ビュー (過去 30 日間)
古いコメントを表示
I wrote this code to get elliptical eqn in the form of (x^2)/(a^2)+(y^2)/(b^2) = 1 from user and i want find a and b . exp:((x^2)/16+(y^2)/25=1)
ellipse_eqn = input('Enter for elliptical path: ','s') ;
ellipse = str2sym(ellipse_eqn)
0 件のコメント
採用された回答
Matt J
2022 年 12 月 6 日
syms x y real
ellipse=(x^2)/16+(y^2)/25==1;
a=abs(solve([ellipse,y==0]).x(1))
b=abs(solve([ellipse,x==0]).y(1))
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Number Theory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!