You are on page 1of 6

1. a) Untuk x1=1:0.

1:10

X1 =

Columns 1 through 10

1.0000 1.1000 1.2000 1.3000 1.4000 1.5000 1.6000 1.7000 1.8000 1.9000

Columns 11 through 20

2.0000 2.1000 2.2000 2.3000 2.4000 2.5000 2.6000 2.7000 2.8000 2.9000

Columns 21 through 30

3.0000 3.1000 3.2000 3.3000 3.4000 3.5000 3.6000 3.7000 3.8000 3.9000

Columns 31 through 40

4.0000 4.1000 4.2000 4.3000 4.4000 4.5000 4.6000 4.7000 4.8000 4.9000

Columns 41 through 50

5.0000 5.1000 5.2000 5.3000 5.4000 5.5000 5.6000 5.7000 5.8000 5.9000

Columns 51 through 60

6.0000 6.1000 6.2000 6.3000 6.4000 6.5000 6.6000 6.7000 6.8000 6.9000

Columns 61 through 70

7.0000 7.1000 7.2000 7.3000 7.4000 7.5000 7.6000 7.7000 7.8000 7.9000

Columns 71 through 80

8.0000 8.1000 8.2000 8.3000 8.4000 8.5000 8.6000 8.7000 8.8000 8.9000

Columns 81 through 90

9.0000 9.1000 9.2000 9.3000 9.4000 9.5000 9.6000 9.7000 9.8000 9.9000

Column 91

10.0000
b) untuk x2=1:0.2:10

x 2=

Columns 1 through 9

1.0000 1.2000 1.4000 1.6000 1.8000 2.0000 2.2000 2.4000 2.6000

Columns 10 through 18

2.8000 3.0000 3.2000 3.4000 3.6000 3.8000 4.0000 4.2000 4.4000

Columns 19 through 27

4.6000 4.8000 5.0000 5.2000 5.4000 5.6000 5.8000 6.0000 6.2000

Columns 28 through 36

6.4000 6.6000 6.8000 7.0000 7.2000 7.4000 7.6000 7.8000 8.0000

Columns 37 through 45

8.2000 8.4000 8.6000 8.8000 9.0000 9.2000 9.4000 9.6000 9.8000

Column 46

10.0000

c) untuk x3=1:0.5:10

x3 =

Columns 1 through 9

1.0000 1.5000 2.0000 2.5000 3.0000 3.5000 4.0000 4.5000 5.0000

Columns 10 through 18

5.5000 6.0000 6.5000 7.0000 7.5000 8.0000 8.5000 9.0000 9.5000

Column 19

10.0000
2. a) persamaan y=2*x.^3-12*x.^2+8*x-6
untuk himpunan x1
y1=2*x1.^3-12*x1.^2+8*x1-6

y1 =

Columns 1 through 9

-8.0000 -9.0580 -10.2240 -11.4860 -12.8320 -14.2500 -15.7280 -17.2540 -18.8160

Columns 10 through 18

-20.4020 -22.0000 -23.5980 -25.1840 -26.7460 -28.2720 -29.7500 -31.1680 -32.5140

Columns 19 through 27

-33.7760 -34.9420 -36.0000 -36.9380 -37.7440 -38.4060 -38.9120 -39.2500 -39.4080

Columns 28 through 36

-39.3740 -39.1360 -38.6820 -38.0000 -37.0780 -35.9040 -34.4660 -32.7520 -30.7500

Columns 37 through 45

-28.4480 -25.8340 -22.8960 -19.6220 -16.0000 -12.0180 -7.6640 -2.9260 2.2080

Columns 46 through 54

7.7500 13.7120 20.1060 26.9440 34.2380 42.0000 50.2420 58.9760 68.2140

Columns 55 through 63

77.9680 88.2500 99.0720 110.4460 122.3840 134.8980 148.0000 161.7020 176.0160

Columns 64 through 72

190.9540 206.5280 222.7500 239.6320 257.1860 275.4240 294.3580 314.0000


334.3620

Columns 73 through 81

355.4560 377.2940 399.8880 423.2500 447.3920 472.3260 498.0640 524.6180


552.0000
Columns 82 through 90

580.2220 609.2960 639.2340 670.0480 701.7500 734.3520 767.8660 802.3040


837.6780

Column 91

874.0000

b) persamaan y=2*x.^3-12*x.^2+8*x-6
untuk himpunan x2
y2=2*x2.^3-12*x2.^2+8*x2-6

y2 =

Columns 1 through 9

-8.0000 -10.2240 -12.8320 -15.7280 -18.8160 -22.0000 -25.1840 -28.2720 -31.1680

Columns 10 through 18

-33.7760 -36.0000 -37.7440 -38.9120 -39.4080 -39.1360 -38.0000 -35.9040 -32.7520

Columns 19 through 27

-28.4480 -22.8960 -16.0000 -7.6640 2.2080 13.7120 26.9440 42.0000 58.9760

Columns 28 through 36

77.9680 99.0720 122.3840 148.0000 176.0160 206.5280 239.6320 275.4240 314.0000

Columns 37 through 45

355.4560 399.8880 447.3920 498.0640 552.0000 609.2960 670.0480 734.3520


802.3040

Column 46

874.0000

c) persamaan y=2*x.^3-12*x.^2+8*x-6
untuk himpunan x3
y3=2*x3.^3-12*x3.^2+8*x3-6
y3 =

Columns 1 through 9

-8.0000 -14.2500 -22.0000 -29.7500 -36.0000 -39.2500 -38.0000 -30.7500 -16.0000

Columns 10 through 18

7.7500 42.0000 88.2500 148.0000 222.7500 314.0000 423.2500 552.0000 701.7500

Column 19

874.0000

3. plot masing-masing nilai y

plot untuk y1
plot untuk y2

plot untuk y3

You might also like