.


:




:

































 

 

 

 


2.2.1-2. , ,




- , , =0.58.

. 2.2.1-5. =0.58

. 2.2.1-6 2.2.1-7 , .

 

 

. 2.2.2-6.

 

. 2.2.2-7.

 


 

 

,

 

1) Matlab.

2) , , polyfit ().

3) , - interp1().

4) .

5) .

 

 

 

1) 2.2. (. 2.2.1).

2) : . 2.2.2-1; . 2.2.2-2.

3) .

4) , polyfit() .

5) , , , .

6) , .

7) interp1(), . , , .

8) , .

9) , .

10) clear all.

11) .

3.

2.2.2-1

 

xi
  1 3 5 7 9 10 13
  1 2 4 5 7 10 12
  1 3 6 7 10 11 13
  1 2 4 7 9 11 13
  3 6 7 9 10 11 12
  2 3 6 8 9 10 13
  1 4 5 7 9 11 12
  1 2 4 7 9 12 13
  2 3 5 7 8 11 12
  1 3 6 7 9 10 13
  1 3 7 8 10 11 13
  1 2 5 6 7 10 12
  1 4 5 8 10 12 13
  1 3 5 7 9 10 13
  1 3 6 7 8 10 13
  1 4 5 7 9 11 12
  2 4 5 6 8 12 13
  1 4 5 7 9 11 12
  1 4 5 8 10 11 12
  2 4 5 6 8 12 13
  1 4 5 8 10 12 13
  2 3 6 8 9 10 13
  1 3 5 8 10 12 13
  1 4 5 7 9 11 12
  2 4 5 6 8 12 13
  3 4 5 7 8 9 12
  3 5 8 10 11 12 13
  2 4 7 9 10 11 13
  2 4 5 7 8 10 12
  1 4 5 7 9 11 13

 

2.2.2-2

 

i xi
  -5 1.38 2.44 1.676
  -4.5 1.221 2.359 2.025
  -4 1.511 1.751 1.736
  -3.5 1.501 2.13 1.203
  -3   1.455 1.511
  -2.5 0.728 1.482 1.362
  -2 0.976 1.437 0.75
  -1.5 1.065 0.803 0.976
  -1 0.599 1.175 0.957
  -0.5 0.192 0.49 0.272
    0.3 0.375 0.3
  0.5 0.319 -6.51*10-3 0.165
    -0.405 -1.965 -1.185

 

1) :

,

2) () Command Window, .

1) ?

2) ?

3) polyfit()?

4) polyfit()?

5) polyval()?

6) interp1()?

7) interp1()?

 


2.3.
MatLab

2.3.1.

2.3.2.

MatLab

2.3.3.

 

 

2.3.1.

 

F(x) , f(x) (xi yi, i = 1, 2, , n). .

. , .

, , . , , , , .

:

:

h ;

yi xi, k=0, 1, ,n;

n a, b.

:

:

h ;

y0 = a;

yn = b;

 

:

 

Matlab int(), :

int(S) S , findsym(). S , ''.

int(S, v) S v.

int(S, a, b) S b, , .

int(S, v, a, b) S v b.

 

Matlab int()
(. 2.3.1-1).

 

 

. 2.3.1-1.

 

MatLab , . .

MatLab trapz(x,y). y(x), . y(x) , . - trapz(y), x y (x=1:length(y)), y. , x , .

(. 2.3.1-2).

 

. 2.3.1-2.

Matlab trapz()

 

MatLab quad(). , .

q=quad('f',a,b), f , , .

 

. 2.3.1-3.
quad()

eps : q=quad('f', a, b, eps ). eps =10-6.

Matlab quad() (. 2.3.1-3).

 

 






:


: 2016-10-30; !; : 854 |


:

:

, , .
==> ...

1381 - | 1290 -


© 2015-2024 lektsii.org - -

: 0.032 .