>with(plots): rnd:=rand(1..100): A:=array(1..8,1..8,[])>S:=[seq([seq([i,j,A[i,j]],j=1..8)],i=1..8)]>with(plots): cylinderplot(1,theta=0..2*Pi,z=-1..1, axes=frame); |
>plot3d(x*exp(-x^2-y^2),x=-2..2,y=-2..2,grid=[25,25],style=Contour)
|
bet | 7/13 | Sana | 22.05.2024 | Hajmi | 0,65 Mb. | | #250683 |
Bog'liq Maple dasturida turli xil matematik masalalarniyechishBu sahifa navigatsiya:
- >with(plots): rnd:=rand(1..100): A:=array(1..8,1..8,[])
- >S:=[seq([seq([i,j,A[i,j]],j=1..8)],i=1..8)]
- >with(plots): cylinderplot(1,theta=0..2*Pi,z=-1..1, axes=frame);
>plot3d(x*exp(-x^2-y^2),x=-2..2,y=-2..2,grid=[25,25],style=Contour);
>plot3d([x*sin(x)*cos(y),x*cos(x)*cos(y),x*sin(y)],x=0..2*Pi,y=0..Pi);
Plots paketidagi uch o‘lchovli grafikning asosiy funktsiyalari
Funktsiya
|
Vazifasi
|
Contourplot3d
|
Bir tekislikdagi chiziqlarni yasaydi
|
Gradplot3d
|
Parametri style=Contour. U plot3d funktsiyasi bilan bir xil
|
Fiedplot3d
|
Uch o‘lchovli vektor maydonni yasaydi
|
Implicitplot3d
|
Berilgan noaniq funktsiyani 3 ta o‘zgaruvchi bilan chizadi
|
matrixplot
|
Jadval bilan berilgan yuzani yasaydi
|
cylinderplot
|
Silindr koordinatalari bilan berilgan yuzani yasaydi
|
sphereplot
|
Dumaloq koordinatalar bilan berilgan yuzani yasaydi
|
spacecurve
|
Uch o‘lchovli fazoda qiyshiq yuzani yasaydi. Qiyshiq parametrlari bilan berilgan bo‘lishi kerak.
|
surfdata
|
Berilgan nuqtadan o‘tuvchi yuzani yasaydi.
|
tuberplot
|
Parametrlar orqali fazoda berilgan qiyshiq va radius bilan yuzani yasash.
|
Display3d
|
Umumiy koordinatlar o‘qida uch o‘lchovli grafik strukturasini chizadi.
|
Uch o‘lchovli funktsiya grafikasini ishlatishga doir misollar.
Hajmi 8x8 bo‘lgan A massivni to‘g‘ri kelgan sonlar bilan to‘latish va uni chop etish. Uch o‘lchovli gistogramma bilan yasaymiz.
>with(plots): rnd:=rand(1..100): A:=array(1..8,1..8,[]):
for i from 1 to 8 do for j from 1 to 8 do A[i,j]:= rnd():
end do:
end do:
print(A); matrixplot(A,heights=histogram,axes=frame);
82 71 98 64 77 39 86 69
22 10 56 64 58 61 75 86
17 62 8 50 87 99 67 10
74 82 75 67 74 43 92 94
1 12 39 14 21 45 66 92
96 75 10 61 83 93 14 78
50 36 62 49 4 24 96 74
90 38 58 100 95 29 16 56
>S:=[seq([seq([i,j,A[i,j]],j=1..8)],i=1..8)]:
surfdata(S,axes=frame);
Bu misolda A massiv bir-biriga kirgizilgan 2 ta tsikl bilan to‘ldirilgan. Maple funktsiyasi rand (1 … 100) protsedurasiniyaratadi. rnd( ), unda 1 dan 100 gacha bo‘lgan tasodifiy sonlar to‘planadi. Matrixplot funktsiyasi heights = histogram parametri bilan uch o‘lchovli gistogramma yasaydi.
Cylinderplot funktsiyasidan foydalanish:
>with(plots): cylinderplot(1,theta=0..2*Pi,z=-1..1, axes=frame);
Sphereplot funktsiyasidan foydalanish:
>with(plots):sphereplot(1,theta=0..2*Pi,phi=0..Pi,axes=frame); sphereplot((1.3)^z*sin(theta),z=-1..2*Pi,theta=0..Pi,
|
| |