Menggambar kurva 2D, kurva 3D dan menghitung integral pada matlab


contoh soal sebagai berikut (sumber https://www.facebook.com/groups/570918222980206/)
12645270_1218062701556010_5345357511037463031_n

clear, close all, clc
%No1 http://www.mathworks.com/help/matlab/ref/plot.html
x=-10:0.1:10;
y1=sqrt(49+4.*x.^2);
y2=sqrt(64+3.*x.^2);
plot(x,y1),hold on, grid on
plot(x,y2,'r')
%No2 http://www.mathworks.com/help/matlab/ref/plot3.html
t=0:0.1:2*pi;
x=1+cos(t);
y=2+sin(t);
z=1-cos(2.*t);
figure
plot3(x,y,z), grid on
%No3a http://www.mathworks.com/help/symbolic/int.html
syms x y
pretty(int(2*x*y*exp(2*y),y))
%No3b http://www.mathworks.com/help/matlab/ref/integral.html
fun = @(x,y) 10-2.*x.^2-y.^2
q = integral2(fun,-4,5,-5,5)
%No3c http://www.mathworks.com/help/symbolic/diff.html
syms x
diff((1/2)*x*y*exp(2*y),y)
%No3d http://www.mathworks.com/help/symbolic/diff.html
syms x y
diff(diff(exp(-x^3-y)))
Advertisements

Author: ridhobustami

orang ngak jelas

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s