6.4.
,
Mathcad Matlab.
Mathcad.
Matlab int().
4. : , .
6.4-1. .
2. Mathcad Matlab:
1;
2;
2 h .
3. .
.6.4-1
1 | 2 | h | ||
0.5 | ||||
0.5 | ||||
0.25 | ||||
0.5 | ||||
0.25 | ||||
0.5 | ||||
0.5 | ||||
0.25 | ||||
0.25 | ||||
0.25 | ||||
0.25 | ||||
0.4 | ||||
0.5 | ||||
0.6 | ||||
0.5 | ||||
0.5 | ||||
0.4 | ||||
0.4 | ||||
0.2 | ||||
0.7 | ||||
0,5 | ||||
0.4 | ||||
0.7 | ||||
0.4 |
1. :
- 1 ;
- 2 ;
- h , , ;
- .
2. . ( -1-04).
1. :
- ;
- ;
- h=0.1.
2. , Mathcad Matlab:
Mathcad
|
|
Matlab
% >> syms x >> y=cos(x)^2+x; >> int(y) ans = x/2 + sin(2*x)/4 + x^2/2 % >> x:0.1:1.4 ans = 1.0000 1.1000 1.2000 1.3000 1.4000 >> y=4*x.*sin(x.^2)-log(x) y = 3.3659 4.0214 4.5767 4.9007 4.8447 % >> x=1:0.1:1.4; >> y=4*x.*sin(x.^2)-log(x); >> trapz(x,y) ans = 1.7604 % >> quad('4*x.*sin(x.^2)-log(x)',1,1.4) ans = 1.7684 |
6.4.6.