dasar2ploting pada maple
DESCRIPTION
dasar mapleTRANSCRIPT
DASAR-DASAR PLOTTING1. Menggunakan
with(plots);> with(plots);animate animate3d animatecurve arrow changecoords complexplot complexplot3d, , , , , , ,[conformal conformal3d contourplot contourplot3d coordplot coordplot3d densityplot, , , , , , ,display dualaxisplot fieldplot fieldplot3d gradplot gradplot3d graphplot3d implicitplot, , , , , , , ,implicitplot3d inequal interactive interactiveparams intersectplot listcontplot, , , , , ,listcontplot3d listdensityplot listplot listplot3d loglogplot logplot matrixplot multiple, , , , , , , ,odeplot pareto plotcompare pointplot pointplot3d polarplot polygonplot polygonplot3d, , , , , , , ,polyhedra_supported polyhedraplot rootlocus semilogplot setcolors setoptions, , , , , ,setoptions3d spacecurve sparsematrixplot surfdata textplot textplot3d tubeplot, , , , , , ]
KETERNGAN: Setiap plotting harus diawali with(plots)->satu paket.
2. Menggambar suatu fungsi dalam selang tertentuplot(fungsi,interval)
> f:=x->sin(x); :=f x ( )sin x
> plot(f(x),x=-Pi...Pi);
> g:=x->x^4-7*x^2-6*x; :=g x x4 7 x2 6 x
> plot(g(x),x=-3...3);
3. Mempercantik Grafik Untuk menghias grafik ada tujuh macam pilihan yaitu: 1. color (red,blue,black,violet,yellow,green) 2. axes 3. labels 4. scaling 5. title 6. style 7. thickness
EXAMPLE:
plot(f(x),x=-5...5,color=blue);> plot(g(x),x=-3...3,color=blue,axes=normal,labels=["absis","ordinat"],title="Praktikum PDB",style=line,thickness=5);
KETERNGAN: Penulisan style,color,dll tidaklah harus urut, lebih lengkapnya mengenai pengaturan bisa diklikkanan pada plot.
> f:=x->5*x-x^2; :=f x 5 x x2
> plot(f(x),x=-8...18,color=pink,axes=boxed,labels=[x,y],title="Coba-coba",style=line,thickness=5);
KETERNGAN: Thickness/ketebalan ada kalanya kembali ke nol, sehingga belum tentu semakin besar nilaithickness semakin tebal pula gambar polttingnya.
4. Menggabungkan beberapa fungsiplot([f1,f2,f3],selang,pengaturan=[a,b,c]);
> h:=x->8*x^2; :=h x 8 x2
> plot([f(x),g(x),h(x)],x=-Pi...Pi,color=[red,blue,black],thickness=[1,2,3],legend=["f(x)","g(x)","h(x)"]);
>
KETERNGAN: Legend digunakan untuk menampilkan keterangan tiga garis warna di bawah gambar plotting.
5. Mempekenalkan IMPLICIT PLOT
implicitplot(persamaan,selang1,selang2,scaling=constrained);> implicitplot(x+y=1,x=-1...1,y=0...3,scaling=constrained);
>
KETERNGAN: Scaling constrained digunakan untuk mengubah keukuran sebenarnya Fungsi => y=x*2+1 Persamaan => x+y=0
> implicitplot(x^2+y^2=4,x=-2...2,y=-2...2);
> implicitplot(x^2+y^2=4,x=-12...12,y=-12...12);
KETERNGAN: Semakin besar selang, semakin presisi ploting yang dihasilkan
6. Menggabungkan beberapa IMPLICIT PLOT
implicitplot([p1,p2],selang1,selang2,legend=["a","b"],pengaturan=[a,b]);> implicitplot([x+y=1,x^2+y^2=4],x=-5...5,y=-5...5,legend=["a","i"],color=[red,black],thickness=20);
7. Menggabungkan beberapa PLOT dan IMPLICIT PLOT
implicitplot([p1,p2],selang1,selang2,legend=["a","b"],pengaturan=[a,b]);> f:=x->piecewise(x>=0 and x<3,x^2-4*x,-3<x and x<0,x^2+4*x);
:=f x ( )piecewise , , , and0 x x 3 x2 4 x and-3 x x 0 x2 4 x> a:=plot(f(x),x=-10...10,y=-10...10,thickness=6,color=violet):
> display(a);
> b:=implicitplot(x^2+y^2=4,x=-10...10,y=-10...10,thickness=6,color=pink):
> display(b);
> display([a,b],scaling=constrained);
>>