һ
_____________ ..
_________________2011
..
5
MATHCAD
I ,
:
220700 ,
221000
519.6
00000
00
..
00 MathCAD. I , 220700 ,221000 / .. . : - , 2011. 22 .
519.6
00000
13 2011 .
.
_________________ ..
-
_________________ ..
..
, 2011
.., 2011
.
, 2011
5
MathCAD
: , MathCAD.
. 1 , . , .
MathCAD , . , , . , : MathCAD ( ).
, , MathCAD, , , . /, , .
|
|
, .. .
. . . 1 rnorm.
(rnorm) (m, mu, sigma). MathCAD , -. ( ) -.
- , . , . .
. 1. ,
, ( rnorm ). , (m , mu , sigma ).
- MathCAD Programming (), .
Programming . 2. .
, :
Add Line , ;
← ;
if . ;
otherwise if if;
for ;
while , , . continue ;
. 2. Programming ()
break ;
return ;
on error .
, , , → . , . , Add Line ( ) Programming ().
|
|
. , , . :
, . . - (, ).
:=, . , . . - . .
- , .
, MathCAD, (, Turbo Pascal) , , .
-
- . - - , (:=).
, , -.
- , , -. .
- MathCAD :
1. .
2. : =.
3. Add line, Programming (). -.
4. -. - : , , -.
5. .
1. , = 4.15 g = 1.854.
. , y , . 4, . . - g, . g . . , , . 3.
. 3. -
t . . (6) . . 4, b, .
|
|
. 4.
, . 4, a . b c , . (b ) , , . (b ) , .
(b ) g . . , . 4, . , , , .
1. .
2. . .
3. := - .
4. . , , .. (. 4, ) , (. 4, b).
5. , 5-6 .
6. Add line . .
7. -, <Delete>.
8. ( ). : Add line.
9. . , , , <>. .
10. . , , .
11. , <Insert>.
12. , , <>.
13. , , , , , <> : .
2. ax2 + bx + = 0, a, b, . , d = b2 - 4 :
|
|
- . 5.
. 5. -
. -. R(a,b,c) a∙x2 + b∙x + = 0 , . a, b, .
, . , . if ().
if
1. if : ■ if ■.
2. . Boolean (), (= > < ≤ ≥ *).
3. ( ), , .
4. - ( ), , if, otherwise (). , , .
5. if - .
. 6.
. 6. R(a,b,x),
3. -
[-2, 4].
. y , - . y x .
, x. f(x) , 3. - .
. . if, . 7. otherwise, , , . . 8 -.
. 7.
. 8.
. 9 -, , .
. 9. .
x
4. .
. / , .10 11 - .
. 10. - . 11. -
:
Fun (P) .
MathCAD : for while. , for.
for.
1. for , . 12.
. 12. for
2. for -. , . , .
3. , -. ( ). - . .
|
|
4. for
-, for t. , - . , t for ( ). Pmax PMin. , . 13.
, , MathCAD , , , , , . .
-, . 13, , U . i, , U rnd . 20 .
. 14, a -, - for . n, .
. 13. Fun (P)
. 14. Fun (P)
5. , N :
x 0 .
. 1, - . 15. -, .
. 15. -
N
:
Fun (N, s, x 0) N s x 0.
- , . for . while.
1. , . 16.
. 16. while
6. while , .
7. while . , , .
, while, while, - , , , . - , - . R, , , , , , , , 1. , . 17.
. 17. ,
6. , A(n m), n m : , .
. , - . 18.
. 18. - 6
-, . :
Fun(a,n,m) a(nxm) : , .
, , i j - for. , . . 19 . D, , T.
. 19. ,
-:
1. .
2. .
3. , (, ) .
4. -.
5. - MathCAD.
1. - MathCAD.
2. .
3. .
4. ?
5. : otherwise, return, error MathCAD?
6. MathCAD?
7. break continue.
8. , .
9. -.
10. , .
5
1. , , x 1 x 2
1.
,
x 1=-2.34; x 2 = 5.65
2.
,
x 1=0.564; x 2 = 12.43
3.
,
x 1=-43.67; x 2 = 5.09
4.
,
x 1=-100.87; x 2 = 25.769
5.
,
x 1=0.787; x 2 = 76.091
6.
,
x 1=-87.134; x 2 = 12.454
7.
,
x 1=0.0765; x 2 = 543.87
8.
,
x 1=-987.76; x 2 = 43.78
9.
,
x 1=0.436; x 2 = 21.677
10.
,
x 1=-564.876; x 2 = 0.333
2. , .
1. n . , 2 3.
2. n . .
3. n . .
4. n . .
5. n . .
6. n .
7. n . .
8. n . .
9. n . .
10. n . , .
( ).
.
.
MathCAD.
.
.
1. , . MATHCAD 2000; : / . . , . . . .: , 2000. 656 .
2. , . MathCAD 2000, MatLab 5: / . . , . . , . . . ; .: : , 2001. 524 .
3. , . Mathcad 2000: / . . .: , 2001. 592 .