Integration with Symbolic Variables
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have a problem like that. How can i solve this?
3 件のコメント
採用された回答
VBBV
2023 年 5 月 12 日
syms theta r
a=10;
x=a*(1-cos(theta));
y=a*(1-sin(theta));
r=sqrt(x^2+y^2)
I = vpaintegral(r,0,2*pi)
その他の回答 (2 件)
Sulaymon Eshkabilov
2023 年 5 月 12 日
Use integral() - see DOC
E.g.:
% Step 1. Create a function handle:
F = @(theta, a)sqrt((a*(1-cos(theta))).^2+(a*(1-sin(theta))).^2);
% Step 2. Compute the integral:
INT_F = integral(@(theta)F(theta, 10), 0, 2*pi)
参考
カテゴリ
Help Center および File Exchange で Assumptions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!