フィルターのクリア

Find the area of the astroid

6 ビュー (過去 30 日間)
Srikar Kalivarapu
Srikar Kalivarapu 2016 年 11 月 16 日
編集済み: KSSV 2016 年 11 月 17 日
Find area of an astroid
  1 件のコメント
Adam
Adam 2016 年 11 月 16 日
Aren't asteroids usually 3d?

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

採用された回答

KSSV
KSSV 2016 年 11 月 17 日
編集済み: KSSV 2016 年 11 月 17 日
a = 4 ;
% parametric equations of Asteroid
N = 1000; % keep more for accurate answer
t = linspace(0,2*pi,N) ;
x = a*cos(t).^3 ;
y = a*sin(t).^3 ;
plot(x,y)
% Get area using the curve points
A = polyarea(x,y) ;
% get area using the formula
Af = 3 * pi * a^2 / 8;
[A Af]

その他の回答 (3 件)

KSSV
KSSV 2016 年 11 月 16 日
doc polyarea.

Walter Roberson
Walter Roberson 2016 年 11 月 16 日
solve() for y in terms of x and a. Integrate from x = 0 to x = a

Image Analyst
Image Analyst 2016 年 11 月 16 日
Try this:
astroidArea = 3 * pi * a^2 / 8;
  2 件のコメント
Srikar Kalivarapu
Srikar Kalivarapu 2016 年 11 月 16 日
Can you give me a code for this
Image Analyst
Image Analyst 2016 年 11 月 16 日
That IS code. You just need to define a.
a=10; % Whatever you want.
astroidArea = 3 * pi * a^2 / 8;

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

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by