Anda di halaman 1dari 11

# IV.

A. Hasil

## Persamaan Grafik Keterangan

wxplot2d (sin (x), [x,- Grafik sin (x) pada
%pi,%pi]) ; wxmaxima

%pi]) ; gnuplot

## wxplot2d([sin(x), cos (x)], Grafik sin (x) dan

[x, 0, 2*%pi]); cos (x)

## dataX : [0, 3, 6, 4, 6, 3, 0, Grafik dan

2, 0];dataY : [0, 2, 0, 3, 6, bintangbelah
4, 6, 3, 0];wxplot2d ( [ ketupat
[discrete,dataY,dataY],
[discrete,
[[3,1],[5,3],[3,5],[1,3],
[3,1]]]]) ;
wxplot2d([parametric,sin( Grafikcermin
t),sin(4*t),[t,0,2*%pi]],
[nticks,100] ) ;

## wxplot2d (exp(3*s), [s, Berbentuk garis

-2, 2], logy) ; linier

## wxplot2d (exp(3*s), [s,

-2, 2], logx, logy) ;

wxplot2d([sin(x), Parametrik
[discrete,xwerte,ywerte],
[parametric,10+3*sin(2*t)
,2+2*cos(3*t), [t, 0, 2*
%pi]]],[x, 0, 15],
[nticks,100]);

[fx:cos(x),fy:y,fz:sin(x) Berbentuktabungde
+y^2]; ngan 3 dimensi
plot3d([fx,fy,fz],[x,0,2*
%pi],[y,0,1],
[palette,false])\$
wxcontour_plot(1/ Berbentuk target
(1+x^2+y^2),[x,-3,3],[y,- tembaksepertilingk
3,3]); aran
contour_plot(1/
(1+x^2+y^2),[x,-3,3],[y,-
3,3]);
contour_plot( u^3 + v^2,
[u, -4, 4], [v, -4, 4],
[legend,false],
[gnuplot_preamble, “set
cntrparam levels 12”]);
plot2d ( x^2 – 1, [x, -3, 3],
[box,false], grid2d,
[yx_ratio, 1], [axes,
solid],[xtics, -2, 4, 2],
[ytics, 2, 2, 6], [label,
[“x”, 2.9, -0.3],
[“x^2-1, 0.1, 8]], [title, “A
parabola”]);
r : (exp(cos(t))- Rumus
2*cos(4*t)-sin(t/12)^5);
plot2d([parametric, Berbentukkupu-
r*sin(t), r*cos(t), [t, -7* kupu
%pi, 7*%pi]]);

plot2d([[parametric, Berbentuksegitiga
cos(t), sin(t), [t, 0, 2* dan lingkaran
%pi]], -abs(x)], [x,
-sqrt(2), sqrt(2)],
same_xy);

## wxplot2d([discrete, [[10, . Grafik linier

6], [20, .9], [30, 1.1], [40,
1.3], [50, 1.4]]],
[style,points]);
wxplot2d([discrete, Posisitanpa garis
makelist(i*%pi, i, 1, 5),
[0.6, 0.9, 0.2, 1.3, 1]],
[style, points, lines],
[color, red, blue],
[point_type, asterisk]);

wxplot2d([gamma(x),
1/gamma(x)], [x, -4.5, 5],
[y, -10, 10],
[gnuplot_preamble, “set
key bottom”]);
xx : [10, 20, 30, 40, 50]; Grafikberdasarkan
yy : [.6, .9, 1.1, 1.3, 1.4]; data x dan y
wxplot2d([discrete, xx,
yy]);

## xy : [[10, .6], [20, .9], [30, Grafik linier

1.1], [40, 1.3], [50, 1.4]];
wxplot2d([discrete, xy],
[style, points]);

wxplot2d([[discrete, xy],
2*%pi*sqrt(l/980)],
[1,0,50],
[style, points, lines],
[color, red, blue],
[point_type, asterisk],
[legend, "experiment",
"theory"] ,[xlabel,
"pendulum's length
(cm)"],[ylabel, "period
(s)"]);wxplot2d([[discrete,
xy], 2*%pi*sqrt(l/980)],
[1,0,50],[style,
[points,5,2,6], [lines,1,1]],
[legend, "experiment",
"theory"],[xlabel,
"pendulum's length
(cm)"], [ylabel, "period
(s) "]);
wxplot3d( exp(-x^2 - Grafik 3D
y^2), [x,-2, 2], [y,-2,2]); -X^2 – Y^2

## wxplot3d(1/(1+x^2+y^2), Grafik 3D 1/X^2 +

[x, -3, 3], [y, -3, 3]); Y^2

plot3d Grafik 3D
(sin(2*theta)*cos(phi), Transform
[theta, 0, %pi], [phi, 0, 2* bentukelips
%pi], [transform_xy,
spherical_to_xyz], [grid,
30, 60], [legend, false]);
wxplot3d
(sin(2*theta)*cos(phi),
[theta, 0, %pi], [phi, 0, 2*
%pi], [transform_xy,
spherical_to_xyz], [grid,
30, 60], [legend, false])\$
plot3d (2^(-u^2 + v^2), Grafik 3D
[u, -3, 3], [v, -2, 2]); -u^2 + v^2
wxplot3d (2^(-u^2 + v^2),
[u, -3, 3], [v, -2, 2]);

expr_1 : Grafik 3D
cos(y)*(10.0+6*cos(x)); expr,1,2&3
expr_2 :
sin(y)*(10.0+6*cos(x));
expr_3 : -6*sin(x);
wxplot3d ([expr_1,
expr_2, expr_3], [x, 0, 2*
%pi], [y, 0, 2*%pi], [grid,
40, 40]);
plot3d ([expr_1, expr_2,
expr_3], [x, 0, 2*%pi], [y,
0, 2*%pi], [grid, 40, 40]);

b. Hasil TugasPraktikum

1.

## Persamaan Grafik Keterangan

wxplot2d ([sin (x), sin (2*x), Grafikfungsi
sin (3*x)], [x, -%pi, %pi]); sinus
log10(x):=log (x)/log(10); Grafikfungsil
log2(x):=log(x)/log(2); ogaritmik
wxplot2d([log2(x),log(x),log1
0(x)],[x,0,20],[y,-5,5]);

wxplot2d([log(x)/log(.5),log(x Grafikfungsil
),log(x)/log(2)],[x,-4,10],[y,- ogaritmik
4,4]);

## dataX : Grafik data

[0.8,1.7,2.4,3.2,3.7,4.4,5.0];dat waktupeluru
aY : handengansu
[5.6,14.0,27.5,61,100,205,370] mbu y
; logaritmik
wxplot2d([[discrete,dataX,data
Y],2.5326*%e^(0.9964*x)],
[x,0,8],[legend,
"N/No","slope"],
[style,points,lines],logy);
dataX : Grafik data
[0.8,2.2,3.3,4.8,5.8];dataY : waktupeluru
[20.2,27.8,35.8,50.5,63.5]; handengansu
wxplot2d([[discrete,dataX,data mbu y
Y],16.806*%e^(0.2292*x)], logaritmik
[x,0,8],[y,0,1000],[legend,
"N/No","slope"],
[style,points,lines],logy);

2.
Persamaan Grafik Keterangan
cb:49; gambar)
pb:(cb/(2*m));
co :280;
po :(co/(2*m));
q : (sqrt(ktot/m));
fb:[(1+pb*t)*%e^(-1*pb*t)];
fo:[(1+po*t)*%e^(-1*po*t)];
wxplot2d (fb, [t,0, 10], [legend, (Keteranganad
dengan gambar)
redamanbiasa"], [xlabel,
"waktu (S)"],
[ylabel, "redaman"]); wxplot2d
(fo, [t,0, 10], [legend,
"Kondisi critical damped
dengan
redaman optimal"], [xlabel,
"waktu
(s)"], [ylabel, "redaman"]);
cb:49; gambar)
pb:(cb/(2*m));
co :280;
po :(co/(2*m));
q :(sqrt(ktot/m));
D:(pb^2-q^2);
fb:[%e^(-
D))*%e^(- gambar)
1*pb*t)sin(sqrt(D)*t]; fo :
[%e^(-1*po*t)*cos(sqrt(D)*t)+
(po/sqrt(
D))*%e^(-
1*po*t)*sin(sqrt(D)*t];wxplot
2d (fb, [t,0,10], [legend,
"Kondisi under damped
dengan
redamanbiasa"], [xlabel,
"waktu (s)"],[ylabel,
"redaman"]);wxplot2d(fo, [t, 0,
10], [legend,
"Kondisi under damped
dengan
redaman optimal"], [xlabel,
"waktu
(s)"], [ylabel, "redaman"I);
B: 2;m: 10; gambar)
c: 280;
p:(c(2*m));
q : (sqrt(ktot/m));
D : (po^2-q^2);
fb : [A*%e^( -1*t*p*sqrt(D)
1* t*p*sqrt(D)+t)]; fo : a pada
[A*%e(-1*t*p*sqrt(D)+t) gambar)
+B*9e^(-1*
t*p*sqrt(D)+t)];
wxplot2d (fb,[t, O, 10],
[legend,
"Kondisi under over damped
dengan
redamanbiasa"], [xlabel,
"waktu (s)"],
[ylabel, "redaman"]); wxplot2d
(fo, [t, 0, 10], [legend,
"Kondisi under over damped
denganredaman optimal"],
[xlabel, "waktu
(s)"], [ylabel, "redaman"D]);

B. Pembahasan

## Percobaan kali iniberjudulgrafik dan mempunyaitujuanmengenal program

WxMaxima, membuatgrafik 2D dan 3D denganmemanfaatkanfasilitasWxMaxima, dan
membuatgrafikdari file data denganWxMaxima. Wxmaximasendiriadalah program
untukmenyelesaikanmasalahmatematis. Masalahmatematisinibisaberupaturunan, matriks,
fungsi, dan grafik. Wxmaximapada praktikum kali
inidigunakanuntukmenghasilkangrafik.

didapatkangrafikberbentuk sinus 2 dimensidan fungsi yang dimasukkanadalah wxplot2d.
dalamnya.Selanjutnya pada percobaanmembuatgrafikdiskritdari data x, y
didapatkanhasilgrafikdengan 2 bentuk yang berbedatitik.

percobaanselanjutnyamembuatgrafikkonturdari f (x,y)pusatdari
(0,0)makaakanditampilkangrafikdenganbentuk target tembaksepertilingkaran. Kemudian
percobaanmenggambargrafikdiskritdengan Legenda dan keterangan pada listingan 26
yang dapatdiputarkearah mana saja.

digambarkanadalahgrafikfungsi sinus fungsilogamteknik dan fungsi data
dihasilkandaritugasPraktikum 1 dan tugaspraktikum 2 dapatdilihat pada bagianhasil.

### Dapatkan aplikasi gratis kami

Hak cipta © 2022 Scribd Inc.