Find the area of the astroid

4 Ansichten (letzte 30 Tage)
Srikar Kalivarapu
Srikar Kalivarapu am 16 Nov. 2016
Bearbeitet: KSSV am 17 Nov. 2016
Find area of an astroid
  1 Kommentar
Adam
Adam am 16 Nov. 2016
Aren't asteroids usually 3d?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

KSSV
KSSV am 17 Nov. 2016
Bearbeitet: KSSV am 17 Nov. 2016
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]

Weitere Antworten (3)

KSSV
KSSV am 16 Nov. 2016
doc polyarea.

Walter Roberson
Walter Roberson am 16 Nov. 2016
solve() for y in terms of x and a. Integrate from x = 0 to x = a

Image Analyst
Image Analyst am 16 Nov. 2016
Try this:
astroidArea = 3 * pi * a^2 / 8;
  2 Kommentare
Srikar Kalivarapu
Srikar Kalivarapu am 16 Nov. 2016
Can you give me a code for this
Image Analyst
Image Analyst am 16 Nov. 2016
That IS code. You just need to define a.
a=10; % Whatever you want.
astroidArea = 3 * pi * a^2 / 8;

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by