Professional Documents
Culture Documents
Basics of MathCAD
2009-01-24
2009-01-24
a 3 5
a 15
t 10 11 20
d a
F a
M2 0 0.4
M0 1 3
x
x e dx
I 6.596 10
11
12
13
14
15
16
17
18
19
c 8 s
1.3
v 2.236
20
3
2
M 4 2.236
0.4
20
F 0.188 N
2 1.30
4
.4 20
v1 2.236
10
I
0
v M 1
10
c a 2
10 20
a 4 m b 3 kg
5
3.142
e4 2
3 6
4 8
Kristian Hertz
Basics of MathCAD
2009-01-24
0.5
0.6
linterp A 0 A 1
0.4
0.1
A
0.2
0.4
c 1.0 10
0.80
t 0.0 6.0 360.0
7
3
The thermal difussivity is a
a 4.706 10
b c b 1.166 10
c
The opening factor O 0.04 m and the fire load q 300 MJ/m2 enclosing surface.
3 q
td ( q O) 7.80 10
T2 t q O
O
b
2
0.04
1160
td ( q O) 58.5
345 log 8 t 1
td ( q O)
t
Tf t linterp A 0 A 1
60
3.5
20
1 0.04
0.989
T2 t q O
Tf ( t)
360.
500
0
0
100
200
300
400
A part of the sheat can be collapsed by Insert / Area and Format /Area/Collapse or Expand
A page break can be made by Ctl Enter or by Insert / Page Break
Kristian Hertz
Basics of MathCAD
2009-01-24
0.3
4.5
M
7.3
8.1
Solving equations
A system of equations is
defined by a matrix and
a vector.
0.2
6.6
1.1
res lsolve ( M v)
x 2 1.9 2
0.1
v
0.01
0.001
3.937
2.975
res
0.746
1.952
f ( x) x 5 x 4
40
20
f ( x)
0
root ( f ( x) x 2 0) 1
20
200
400
fc T linterp A 0 A 1 T
Coords
500
1
0
800
And points from a matrix:
y1 Coords
x1 Coords
Inddata from a file: A READPRN ( "MCD Basics 3.DAT" )
0.4
0.6
0.9
1
0.8
fc ( T) 0.6
y1
0.4
0.2
0
200
400
600
T x1
800
0.7
1000
Kristian Hertz
Basics of MathCAD
2009-01-24
x 0 0.05 10
Linear Regression
A dataset is entered
2
6.2
Data1
2.4
5
3.7
3.5
12
5
5.6
7.3
2
2.4
Data2
3.7
5
6.2
3.5
5
7.3
5.6
12
x2 Data2 0
y2 Data2 1
3.435
0.975
fit
bf 3.435
af fit1
af 0.975
Lin ( x) af x bf
15
y2
Lin ( x)
10
5
0
3.804
0.866
10
x2 x
10
Lin ( x)
Linm ( x)
5
x2 x
10
Kristian Hertz
Basics of MathCAD
2009-01-24
5
a 7
9
4
d 1
0
Matrix operations
At first we define some vectors
using Ctl M
G augment ( d e f )
2
b 1
0
2
e 3
0
0
c 3
4
1
f 2
3
4 2 1
G 1 3 2
0 0 3
4 2 1
M 1 3 2
0
0
3
h M
5
7
9
2
L 1
0
0
3
4
h 30
6 4 3
z ( x) x 2 z ( M) 3 5 4
2 2 5
k d e
k 11
9
g e f g 6
1
r d g r 30
or
r1 d ( e f ) r1 30
Kristian Hertz
Basics of MathCAD
2009-01-24
1
b 4
1
1
2
3
a 4 5 6
7 8 9
12
a b 30
48
2 4
4 6
1 1
13 19
34 52
55 85
1 4 12
( a b) 16 20 36
1 1 0.75
a 1 1.25 1
b
9
7 8
x 2
Programs
A program is got by adding more
lines to an expression by
] (Alt 9) or Add Line from the
Programming toolbar
(View / Toolbars / Programming).
f ( x)
z
y ( x)
f ( x) 9
f ( 3) 16
z 0
for i 1 x
z zi
y ( 5) 15
h ( v) 2 v
z 0
for i 1 2 x
z zi
z
zx1
g ( x)
z 0
for i 1 2 x
z h ( z) i
g ( 5) 3.249 10
g ( 5) 3.249 10
Kristian Hertz
Basics of MathCAD
2009-01-24
x 6
j 1 2 10
A program is made using ] or
Add Line from prog menu.
A value is assigned by { and a
for loop by Ctrl+
f ( x)
h ( v) 2 v m
g5 6
ii 0 1 5 tii ii 10
B0 0 k
B0 1 2
B3 t
B0 2 g5
g7 8
for i 1 2 x
Bi 0 10 i
Bi 1 10 i Bi1 1
Bi 2
h Bi 1
m
B
B
C f ( x)
A vector value can be used
in the loop but not written
as for example
g7
1 103
10
20
C 30
40
50
60
12
24
10
32
64
20
62
124 30
152 304 50
212 424 0
102 204 40
Kristian Hertz
Basics of MathCAD
2009-01-24
p0 50
pr r 2
pr
-1
2
100
7
14
50
23
pr
34
62
50
r
1
50
-1
14
14
23
34
23
47
34
62
47
79
62
98
10
79
10
79
98
tr r 10
-1
47
100
50
p
0
50
50
t
10 98
100
Kristian Hertz
Basics of MathCAD
2009-01-24
Statistics
0.6
0.61
1.45
0.75
v 1.30
1.00
0.92
0.92
0.93
n length ( v)
n9
0.9422
SD ( x) stdev ( x)
Standard deviation
v0
n
n1
SD ( v) 0.2861 or:
0.2861
n1
xp 0.8
is:
dnorm xp 1.2324
pnorm xp 0.3095
cnorm ( 0) 0.5000
xn x
Normalized values
xnp xn xp
pnorm x
1
0.5
0
0.5
xnp 0.497
1.5
dnorm x
1
x
1.5
Kristian Hertz
Basics of MathCAD
10
2009-01-24