Math cad advection-convection heat transferJulio Banks
This paper is intended to promote two (2) concepts, advection, and heat flux. Advection is the transport of thermal energy via a moving (working) fluid and heat flux is the heat flow divided by the heat transfer surface area.
Mathcad Functions for Conduction heat transfer calculationstmuliya
This file contains notes on Mathcad Functions for Conduction heat transfer calculations. Some problems are also included.
These notes were prepared while teaching Heat Transfer course to the M.Tech. students in Mechanical Engineering Dept. of St. Joseph Engineering College, Vamanjoor, Mangalore, India.
It is hoped that these notes will be useful to teachers, students, researchers and professionals working in this field.
Mathcad Functions for Forced convection heat transfer calculationstmuliya
This file contains notes on Mathcad Functions for Forced convection heat transfer calculations. Some problems are also included.
These notes were prepared while teaching Heat Transfer course to the M.Tech. students in Mechanical Engineering Dept. of St. Joseph Engineering College, Vamanjoor, Mangalore, India. It is hoped that these notes will be useful to teachers, students, researchers and professionals working in this field.
Contents: Forced convection formulas – boundary layer, flow over flat plates, across cylinders, spheres and tube banks
Mathcad Functions for Natural (or free) convection heat transfer calculationstmuliya
This file contains notes on Mathcad Functions for Natural (or, free) convection heat transfer calculations. Some problems are also included.
These notes were prepared while teaching Heat Transfer course to the M.Tech. students in Mechanical Engineering Dept. of St. Joseph Engineering College, Vamanjoor, Mangalore, India.
It is hoped that these notes will be useful to teachers, students, researchers and professionals working in this field.
Contents: Free convection from vertical plates and cylinders, horizontal plates, cylinders and spheres, enclosed spaces, rotating cylinders, disks and spheres. Finned surfaces.
Combined Natural and Forced convection.
Mathcad functions for fluid properties - for convection heat transfer calcu...tmuliya
This file contains slides on Mathcad Functions for Fluid properties--- Useful in Convection heat transfer calculations.
The slides were prepared while teaching Heat Transfer course to the M.Tech. students in Mechanical Engineering Dept. of St. Joseph Engineering College, Vamanjoor, Mangalore, India, during Sept. – Dec. 2010.
It is hoped that these Slides will be useful to teachers, students, researchers and professionals working in this field.
Contents: Mathcad Functions for properties of:
Air, Ammonia, Ethyl alcohol, Ethylene glycol, Un-used engine oil, Glycerin, Lead, and Mercury
Egr445 book for Dr. Redkar's Class at ASU, I do not own right to this book, this is for vewing and student purposes.
author : De Silva, Clarence W.
publisher : CRC Press
isbn10 | asin : 0203502787
print isbn13 : 9780203611647
ebook isbn13 : 9780203502785
language : English
subject Mechatronics.
publication date : 2005
lcc : TJ163.12.D45 2005eb
ddc : 621.3
subject : Mechatronics.
14. บทที่ 1. ความสามารถเบื้องต้นของโปรแกรม Mathcad Mathcaad – 5
8.7 สามารถปรับเปลี่ยนรูปแบบของกราฟให้เหมาะสมกับการใช้งาน
ตัวอย่าง กราฟของ f(x) = 3
x + 2
x – 9x – 9 บนช่วง [–4, 4]
แบบที่ 1. มีแกน X และแกน Y แต่ไม่มีสเกล แบบที่ 2. มีแกน X และแกน Y มีสเกล
แต่ไม่มีตัวเลขที่สเกล
แบบที่ 3. มีแกน X และแกน Y แบบที่ 4. มีแกน X และแกน Y
มีสเกลและมีตัวเลขที่สเกล มีสเกล มีตัวเลขที่สเกล
มีเส้นกริดช่วยในการประมาณค่า
8.8 สามารถเขียนกราฟ 2 ฟังก์ชันที่มีโดเมนต่างกันได้
ตัวอย่าง กราฟของ f(x) = 5 – 4x บนช่วง [–3, 1] และ g(t) = 2t + 10 บนช่วง [1, 4]
x 4− 3.99−, 4..:= f x( ) x
3
x
2
9 x⋅− 9−+:=
0
f x( )
x
x 4− 3.99−, 4..:= f x( ) x
3
x
2
9 x⋅− 9−+:=
f x( )
x
x 4− 3.99−, 4..:= f x( ) x
3
x
2
9 x⋅− 9−+:=
4 3 2 1 0 1 2 3 4
40
20
20
40
f x( )
x
x 3− 2.99−, 1..:= f x( ) 5 4 x⋅−:= t 1 1.01, 4..:= g t( ) 2 t⋅ 10+:=
4 3 2 1 0 1 2 3 4 5
5
5
10
15
20
f x( )
g t( )
x t,
.
x 4− 3.99−, 4..:= f x( ) x
3
x
2
+ 9 x⋅− 9−:=
4 3 2 1 0 1 2 3 4
40
20
20
40
f x( )
x
15. บทที่ 1. ความสามารถเบื้องต้นของโปรแกรม MathcadMathcad – 6
9. การคํานวณในรูปแบบของเลขฐานอื่นๆ
ตัวอย่าง 12 ฐาน 8 บวกกับ 15 ฐาน 8 ได้ 23 ฐาน 10
12 ฐาน 16 บวกกับ 15 ฐาน 16 ได้ 39 ฐาน 10
หมายเหตุ อักษร o ท้ายตัวเลขหมายถึงเลขฐาน 8 และ อักษร h ท้ายตัวเลขหมายถึงเลขฐาน 16
10. การคํานวณในรูปแบบเวกเตอร์
Mathcad สามารถหาผลบวก ผลต่าง dot product cross product และ ขนาดของเวกเตอร์ได้
11. การคํานวณในรูปแบบเมทริกซ์
Mathcad สามารถหา ผลบวก ผลต่าง อินเวอร์ส ค่ากําหนด ของเมทริกซ์ได้
12. การคํานวณจํานวนเชิงซ้อน
Mathcad สามารถหาผลบวก ผลต่าง อินเวอร์ส ค่าสัมบูรณ์ของจํานวนเชิงซ้อนได้
13. การหาผลบวกในรูปแบบผลบวก ∑
ตัวอย่าง การหาผลบวกของตัวเลข
12o 15o+ 23=
12h 15h+ 39=
u
2
3
6
:= v
3
4
0
:=
u v+
5
7
6
= u v−
1−
1−
6
= u v×
24−
18
1−
= u v⋅ 18= u 7=
A
1
3
2
5
:= B
2
0
0
4
:= A B⋅
2
6
8
20
=
A B+
3
3
2
9
= 4 A⋅
4
12
8
20
= B 8= A 1−= A
1− 5−
3
2
1−
=
z 3 4i+:= w 5 12i+:=
z w+ 8 16i+= z w⋅ 33− 56i+= z 5= z
1−
0.12 0.16i−=
1
10
i
i∑
=
55=
1
10
i
i
2
∑
=
385=
1
10
i
i i 1+( )⋅∑
=
440=
16. บทที่ 1. ความสามารถเบื้องต้นของโปรแกรม Mathcad Mathcaad – 7
ตัวอย่าง การหาผลบวกของตัวแปร ix เมื่อ i = 1, 2, 3, ... , n
14. การคํานวณค่าสถิติเบื้องต้น
ตัวอย่าง การหาค่าสถิติเบื้องต้นของข้อมูล 2, 3, 7, 12, 16
mean = ค่าเฉลี่ย min = ค่าตํ่าสุด
median = มัธยฐาน max = ค่าสูงสุด
var = ความแปรปรวนของประชากร = n
)xx( 2
i
n
1i
−∑
=
stdev = ส่วนเบี่ยงเบนมาตรฐานของประชากร = )xvar(
Var = ความแปรปรวนของตัวอย่าง = 1n
)xx( 2
i
n
1i
−
−∑
=
Stdev = ส่วนเบี่ยงเบนมาตรฐานของตัวอย่าง = )x(Var
15. สามารถหาความสัมพันธ์เชิงฟังก์ชันของข้อมูลในรูปแบบ y = mx + c ได้
ตัวอย่าง การหาความสัมพันธ์เชิงเส้นตรงระหว่าง นํ้าหนัก (x) กับส่วนสูง (y)
นํ้าหนัก ความสูง
53 156
58 165
55 162
60 170
62 165
68 173
x เป็นตัวแปรอิสระ
y เป็นตัวแปรตาม
slope(x, y) คือ สัมประสิทธิ์การถดถอยเชิงเส้น
intercept(x, y) คือค่าคงตัวของสมการเส้นตรง y = mx + c
corr(x, y) คือ สัมประสิทธิ์สหสัมพันธ์เชิงเส้นตรง
ORIGIN 1:= i 1 5..:= xi
2
3
7
12
16
:=
1
5
i
xi∑
=
40=
1
5
i
xi( )2
∑
=
462=
ORIGIN 1:= i 1 5..:=
xi
2
3
7
12
16
:=
mean x( ) 8=
median x( ) 7=
stdev x( ) 5.329=
var x( ) 28.4=
Stdev x( ) 5.958=
Var x( ) 35.5=
max x( ) 16=
min x( ) 2=
ORIGIN 1:= i 1 6..:=
x
53
58
55
60
62
68
:= y
156
165
162
170
165
173
:=
m slope x y,( ):= m 0.995=
c intercept x y,( ):= c 106.109=
r corr x y,( ):= r 0.891=
17. บทที่ 1. ความสามารถเบื้องต้นของโปรแกรม MathcadMathcad – 8
16. ความสามารถในการจัดรูปพีชคณิต การแยกตัวประกอบ การกระจายพหุนาม
16.1 การกระจายพหุนาม
ตัวอย่าง
16.2 การแยกตัวประกอบ
ตัวอย่าง
16.3 การจัดรูปแบบทางพีชคณิต
ตัวอย่าง
17. ความสามารถในการหาอนุพันธ์ และอนุพันธ์ย่อย ทั้งแบบค่าตัวเลขและเป็ นสูตร
17.1 การหาอนุพันธ์เป็นค่าตัวเลข
ตัวอย่าง การหาอนุพันธ์
ตัวอย่าง การหาอนุพันธ์ย่อย
17.2 การหาอนุพันธ์เป็นสูตร
ตัวอย่าง การหาอนุพันธ์
ตัวอย่าง การหาอนุพันธ์ย่อย
x 1−( ) x 2+( )⋅ expand x
2
x 2−+→
x 1+( ) x 2+( )
2
⋅ expand x
3
5 x
2
⋅+ 8 x⋅+ 4+→
x
2
5 x⋅+ 6+ factor x 3+( ) x 2+( )⋅→
x
3
5 x
2
⋅+ 8 x⋅+ 4+ factor x 1+( ) x 2+( )
2
⋅→
1
2
2
3
+ factor
7
6
→
1
1 2+
factor 2 1−→
1
1 x−
1
1 x+
+ factor
2−
x 1−( ) x 1+( )⋅[ ]
→
x 1:= f x( ) x
3
4 x
2
⋅+ 5 x⋅+ 4−:=
f x( ) 6=
x
f x( )
d
d
16=
2
x
f x( )
d
d
2
14=
3
x
f x( )
d
d
3
6=
x 2:= y 1:=
x
x
3
2 x
2
⋅ y⋅+ y
4
+( )d
d
20=
y y
x
3
2 x
2
⋅ y⋅+ y
4
+( )d
d
d
d
12=
x
x
3
4 x
2
⋅+ 5 x⋅+ 4−( )d
d
expand 3 x
2
⋅ 8 x⋅+ 5+→
2
x
x
3
4 x
2
⋅+ 5 x⋅+ 4−( )d
d
2
expand 6 x⋅ 8+→
x
x
3
2 x
2
⋅ y⋅+ y
4
+( )d
d
simplify 3 x
2
⋅ 4 x⋅ y⋅+→
y y
x
3
2 x
2
⋅ y⋅+ y
4
+( )d
d
d
d
simplify 12 y
2
⋅→
18. บทที่ 1. ความสามารถเบื้องต้นของโปรแกรม Mathcad Mathcaad – 9
18. ความสามารถในการหาปริพันธ์เป็ นสูตรและค่าตัวเลข
18.1 การหาปริพันธ์เป็นค่าตัวเลข
18.2 การหาปริพันธ์เป็นสูตร
19. สามารถหาค่าลิมิตได้
20. ความสามารถในการคํานวณเป็ นโปรแกรม
ตัวอย่าง โปรแกรมหาพื้นที่สามเหลี่ยมเมื่อรู้ความยาวทั้งสามด้าน
0
2
xx
3
1+( )⌠
⌡
d 6=
0
1
y
0
2
xx
3
y( )⌠
⌡
d
⌠
⌡
d 2=
0
1
z
1
2
y
1−
1
xx y
3
⋅ z+( )⌠
⌡
d
⌠
⌡
d
⌠
⌡
d 1=
xx
3
1+( )⌠
⌡
d simplify
1
4
x
4
⋅ x+→
yxx
3
y⋅( )⌠
⌡
d
⌠
⌡
d simplify
1
8
x
4
⋅ y
2
⋅→
zyxx y
3
⋅ z+( )⌠
⌡
d
⌠
⌡
d
⌠
⌡
d simplify
1
8
x
2
⋅ y
4
⋅ z⋅
1
2
z
2
⋅ x⋅ y⋅+→
1x
x
2
x+ 1+lim
→
3→
1x
x
2
1−
x 1−
lim
→
2→
0x
sin x( )
x
lim
→
1→
0x
x
x
lim
+→
1→
0x
x
x
lim
−→
1−→
∞x
1
1
x
+
2 x⋅
lim
→
exp 2( )→
a 3:=
b 4:=
c 5:=
s
a b+ c+
2
:=
Area s s a−( )⋅ s b−( )⋅ s c−( )⋅:=
Area 6=
1
x
2
t4 t
3
⋅ 1+( )⌠
⌡
d x
8
x
2
2−+→
1
t
y
0
t
2
x2x 4 y⋅+( )
⌠
⌡
d
⌠
⌡
d t
5
t
4
2 t
2
⋅−+→
19. บทที่ 1. ความสามารถเบื้องต้นของโปรแกรม MathcadMathcad – 10
เมื่อเปลี่ยนค่า a, b, c ใหม่จะได้ผลการคํานวณเป็นดังนี้
21. ความสามารถในการหารากของสมการ f(x) = 0
ตัวอย่าง การหารากของสมการ 2
x - 2 = 0
เพราะฉะนั้นรากของสมการ
คือ x = 1.414 และ –1.414
ตัวอย่าง การหารากของสมการ sinx - cosx = 0
รากสมการ sinx - cosx = 0 คือ x = 0.785 radian หรือ 45 degree
22. ความสามารถในการหาผลเฉลยของระบบสมการ
22.1 การหาผลเฉลยของระบบสมการเชิงเส้น
ตัวอย่าง การหาผลเฉลยของระบบสมการ
2x + y = 4
9x – 4y = 1
เพราะฉะนั้น x = 1, y = 2
22.2 การหาผลเฉลยของระบบสมการไม่เชิงเส้น
ตัวอย่าง การหาผลเฉลยของระบบสมการ
2
x + 2
y = 1
และ x – y = 0
เพราะฉะนั้น x = 0.707, y = 0.707
23. ความสามารถในการหาผลเฉลยของสมการเชิงอนุพันธ์
ตัวอย่าง การหาผลเฉลยของสมการเชิงอนุพันธ์
dx
dy
= 1 + 4x, y(0) = 1
โปรแกรม Mathcad จะสามารถหาผลเฉลย y(x) ได้
ความสามารถอื่น ๆ ในการประยุกต์
เนื้อหาคณิตศาสตร์ขอให้ศึกษาในบทต่อไป
x 1:= root x
2
2− x,( ) 1.414=
x 1−:= root x
2
2− x,( ) 1.414−=
x 0:= y 0:=
Given
2 x⋅ y+ 4
9x 4 y⋅− 1
Find x y,( )
1
2
=
x 0:= y 0:=
Given
x
2
y
2
+ 1
x y− 0
Find x y,( )
0.707
0.707
=
x 1:= root sin x( ) cos x( )− x,( ) 45deg=
root sin x( ) cos x( )− x,( ) 0.785rad=
a 5:=
b 12:=
c 13:=
s
a b+ c+
2
:=
Area s s a−( )⋅ s b−( )⋅ s c−( )⋅:=
Area 30=
Given
x
y x( )
d
d
1 4 x⋅+ y 0( ) 1 .
y Odesolve x 10,( ):=
0 1 2 3 4
8
16
24
32
40
y x( )
x
y 1( ) 4= .
y 2( ) 11=
38. บทที่ 2. การใช้โปรแกรมสําเร็จรูป Mathcad Mathcad - 29
2.8 การคํานวณค่าเกี่ยวกับผลบวกในรูปแบบ ∑
ตัวอย่าง การหาค่าของ ∑
=
10
1i
i , ∑
=
10
1i
2
i , (i2
− −
=
∑ 4 5
1
10
i
i
)
ขั้นตอนการนําแถบเครื่องมือคํานวณขึ้นมาใช้งาน
ขั้นที่ 1. เลือกเมนู View
ขั้นที่ 2. เลื่อนมาที่ Toolbars
ขั้นที่ 3. เลื่อนเมาส์มาที่ Math
ขั้นที่ 4. คลิกเมาส์ที่คําสั่ง Math
จะได้แถบเครื่องมือของการคํานวณ Math
ขั้นที่ 5. คลิกเมาส์ที่ Icon จะได้แถบเครื่องมือของ Calculus
หมายเหตุ การเข้ามาใช้งานโปรแกรม Mathcad
ในบางครั้งอาจมีแถบเครื่องมือของการคํานวณต่าง ๆ ปรากฏอยู่บนจอภาพแล้ว
การหาค่าของ ∑
=
10
1i
i , ∑
=
10
1i
2
i , (i2
− −
=
∑ 4 5
1
10
i
i
)
พิมพ์ ผลบนจอภาพ
การหาผลบวก ∑
=
10
1i
i
คลิกที่สัญลักษณ์
จะได้แถบเครื่องมือดังนี้
คลิกที่สัญลักษณ์
i<Tab>
i<Tab>
39. บทที่ 2. การใช้โปรแกรมสําเร็จรูป MathcadMathcad - 30
1<Tab>
10=↵
1
10
i
i∑
=
55=
ในทํานองเดียวกันจะได้ว่า
2.9 การคํานวณค่าปริพันธ์ dx)x(f
b
a
∫ ตัวอย่างการหาค่าของ dxx
2
1
0
∫
พิมพ์ ผลบนจอภาพ
จากแถบเครื่องมือ Calculus
คลิกที่สัญลักษณ์
x^2<Tab>
x<Tab>
0<Tab>
1=↵
0
1
xx
2⌠
⌡
d 0.333=
1
10
i
i
2
∑
=
385=
1
10
i
i
2
4 i⋅− 5−( )∑
=
115=
40. บทที่ 2. การใช้โปรแกรมสําเร็จรูป Mathcad Mathcad - 31
หมายเหตุ ในกรณีที่เรากําหนด f(x) = 2
x จะทําให้การคํานวณสะดวกขึ้นดังนี้
2.10 การคํานวณค่าอนุพันธ์ )x(f
dx
d หรือ )x(f
dx
d
n
n
ตัวอย่าง การคํานวณ )x(f
dx
d เมื่อ f(x) = 2x ที่ x = 1
พิมพ์ ผลบนจอภาพ
f(x):x^2↵ f x( ) x
2
:=
x:1↵ x 1:=
จากแถบเครื่องมือ Calculus
คลิกที่สัญลักษณ์
x<Tab>
f(x)=↵
x
f x( )
d
d
2=
การคํานวณ )x(f
dx
d
2
2
เมื่อ f(x) = 4x ที่ x = 2
พิมพ์ ผลบนจอภาพ
f(x):x^4↵ f x( ) x
4
:= .
x:2↵ x 2:= .
จากแถบเครื่องมือ Calculus
คลิกที่สัญลักษณ์
f x( ) x
2
:=
0
1
xf x( )
⌠
⌡
d 0.333=
3−
3
xf x( )
⌠
⌡
d 18=
0
3
xf x( )
⌠
⌡
d 9=
41. บทที่ 2. การใช้โปรแกรมสําเร็จรูป MathcadMathcad - 32
f(x)<Tab>
x<Tab>
2=↵
2
x
f x( )
d
d
2
48=
หมายเหตุ 1. กดเครื่องหมาย ? บนแป้ นพิมพ์จะได้สัญลักษณ์
2. กด <Ctrl> + ? บนแป้ นพิมพ์จะได้สัญลักษณ์
2.11 การกําหนดหน่วยให้กับผลการคํานวณ
พิมพ์ ผลบนจอภาพ
sin(30)=↵ sin 30( ) 0.988−=
หมายเหตุ ขณะนี้คอมพิวเตอร์จะคิดเป็นหน่วย เรเดียน
sin(30*deg)=↵ sin 30 deg⋅( ) 0.5=
หมายเหตุ 30.deg คือ 30 องศา
atan(1)=
หมายเหตุ ขณะนี้ผลลัพธ์มีหน่วยเป็น เรเดียน
<Tab>
d
eg↵ atan 1( ) 45deg=
ในทํานองเดียวกัน
2.12 การคํานวณในรูปแบบของเลขฐานอื่นๆ
ตัวอย่าง 12o + 17o = 25 o หมายถึงเลขฐาน 8
(12o)(11o) =
10h + 12h = 34 h หมายถึงเลขฐาน 16
(2h)(11h) = 32
cos 30( ) 0.154= cos 30 deg⋅( ) 0.866= asin 1( ) 1.571= asin 1( ) 90deg= .
s 1000 m⋅:= t 5 sec⋅:=
s
t
200
m
s
=
s 60 km⋅:= t 2 min⋅:=
s
t
500
m
s
=
s
t
30
km
min
=
42. บทที่ 2. การใช้โปรแกรมสําเร็จรูป Mathcad Mathcad - 33
พิมพ์ ผลบนจอภาพ
12o+17o=↵ 12o 17o+ 25=
หมายเหตุ 12 ฐาน 8 บวก 17 ฐาน 8 ได้ 25 ฐาน 10
12o*11o=↵ 12o 11o⋅ 90=
หมายเหตุ 10 ฐาน 8 คูณ 11 ฐาน 8 ได้ 90 ฐาน 10
10h+12h=↵ 10h 12h+ 34=
หมายเหตุ 10 ฐาน 16 บวก 12 ฐาน 16 ได้ 34 ฐาน 10
2h*11h=↵ 2h 10h⋅ 32=
หมายเหตุ 2 ฐาน 16 คูณ 11 ฐาน 16 ได้ 32 ฐาน 10
2.13 การหาผลบวกในรูปแบบ ∑
=
n
1i
ix
ตัวอย่างเช่น
พิมพ์ ผลบนจอภาพ
ORIGIN:1↵ ORIGIN 1:=
กําหนดเมทริกซ์ x และ y
การกําหนดเมทริกซ์ x และ y
ดูที่หัวข้อ 2.6
x
2
3
6
9
:= y
12
15
14
19
:=
การพิมพ์เพื่อหาผลบวก
จากแถบเครื่องมือ Calculus
คลิกที่สัญลักษณ์
ORIGIN 1:= x
2
3
6
9
:= y
12
15
14
19
:=
1
4
i
x
i∑
=
20=
1
4
i
y
i∑
=
60=
1
4
i
x
i( )2
∑
=
130=
1
4
i
y
i( )2
∑
=
926=
1
4
i
x
i
y
i
⋅∑
=
324=
44. บทที่ 2. การใช้โปรแกรมสําเร็จรูป Mathcad Mathcad - 35
1<Tab>
4=↵
1
4
i
x
i( )2
∑
=
130=
การพิมพ์เพื่อหาผลบวก ii
4
1i
yx∑
=
คลิกที่สัญลักษณ์
x[i
<Space Bar>
*
y[i<Tab>
i<Tab>
1<Tab>
4=↵
1
4
i
x
i
y
i
⋅∑
=
324=
45. บทที่ 2. การใช้โปรแกรมสําเร็จรูป MathcadMathcad - 36
2.14 การสร้างตารางฟังก์ชัน
การสร้างตารางฟังก์ชันมีขั้นตอนที่สําคัญดังต่อไปนี้
ขั้นที่ 1. กําหนดช่วงของตัวแปร x
ขั้นที่ 2. กําหนดสูตรของฟังก์ชัน f(x)
ขั้นที่ 3. พิมพ์ค่าของ x และ f(x)
ตัวอย่างเช่น
พิมพ์ ผลบนจอภาพ
x:1;4↵ x 1 4..:= .
f(x):2*x+4↵ f x( ) 2 x⋅ 4+:= .
x=↵ x
1
2
3
4
=
f(x)=↵ f x( )
6
8
10
12
=
หมายเหตุ ในกรณีที่ค่า x เพิ่มไม่เท่ากันสามารถคํานวณในรูปแบบตารางได้ดังนี้
2.15 การคํานวณค่าเกี่ยวกับจํานวนเชิงซ้อน
ตัวอย่าง (3 + 4i) + (5 - 9i) = 8 - 5i
| 3 + 4i | = 5
พิมพ์ ผลบนจอภาพ
z : 3+4i↵ z 3 4i+:= .
w : 5-9i↵ w 5 9i−:= .
x 1 4..:=
f x( ) 2 x⋅ 4+:=
x
1
2
3
4
= f x( )
6
8
10
12
=
x
2
5
7
12
:= f x( ) 2 x⋅ 4+:= f x( )
8
14
18
28
=
46. บทที่ 2. การใช้โปรแกรมสําเร็จรูป Mathcad Mathcad - 37
z+w=↵ z w+ 8 5i−=
|
z=↵ z 5=
2.16 การหารากของสมการ f(x) = 0
ตัวอย่าง การหารากของสมการ 2
x - 2 = 0
พิมพ์ ผลบนจอภาพ
f(x):x^2
<Space Bar>
-2↵ f x( ) x
2
2−:= .
x:1↵ x 1:= .
root(f(x), x)=↵ root f x( ) x,( ) 1.414= .
หมายเหตุ คําสั่ง root เป็นคําสั่งที่ใช้หารากของสมการ f(x) = 0 โดยวีธีของนิวตัน
โดยกําหนดจุดเริ่มต้นของการหารากที่ x = 1
ตัวอย่างการหารากของสมการอื่น ๆ เช่น
2.17 การผลเฉลยของระบบสมการ
ตัวอย่าง การหาผลเฉลยของระบบสมการ 2x + 3y = 8
x + y = 3
พิมพ์ ผลบนจอภาพ
x:0↵ x 0:= .
y:0↵ y 0:= .
Given↵ Given .
2*x+3*y
<Ctrl>+=
หมายเหต◌ุ กด <Ctrl>+= จึงจะได้สัญลักษณ์ = ที่มีสีดํา
เข้ม ตามรูปแบบของชุดคําสั่ง Given
8↵ 2 x⋅ 3y+ 8
x+y↵
f x( ) x
2
x− 20−:=
x 1:= root f x( ) x,( ) 5=
x 2−:= root f x( ) x,( ) 4−=
47. บทที่ 2. การใช้โปรแกรมสําเร็จรูป MathcadMathcad - 38
<Ctrl>+=
3↵ x y+ 3
Find(x, y)=↵ Find x y,( )
1
2
=
หมายเหตุ ชุดคําสั่ง Given และ Find เป็นคําสั่งที่ใช้หาผลเฉลยของระบบสมการด้วยวิธีของนิวตัน
โดยกําหนดจุดเริ่มต้นของการหาผลเฉลย x = 0 และ y = 0
ตัวอย่าง การหาผลเฉลยของระบบสมการไม่เชิงเส้น
การหาจุดตัดของวงกลม 2
x + 2
y = 25
และเส้นตรง 3x + 4y = 0
2.18 การคํานวณค่า r
n
C และ r
n
P
สูตร r
n
C = )!rn(!r
!n
−
สามารถกําหนดเป็นสูตรในโปรแกรม Mathcad ได้ดังนี้
พิมพ์ ผลบนจอภาพ
C(n, r):n!
/
r!*
(n-r)!↵ C n r,( )
n!
r! n r−( )!⋅
:=
C(5, 1)= ↵ C 5 1,( ) 5=
C(5, 2)= ↵ C 5 2,( ) 10=
การกําหนดสูตร r
n
P = )!rn(
!n
−
P(n, r):
/
(n-r)!↵ P n r,( )
n!
n r−( )!
:=
P(5, 1)= ↵ P 5 1,( ) 5=
P(5, 2)= ↵ P 5 2,( ) 20=
x 1:= y 1:=
Given
x
2
y
2
+ 25 3x 4y+ 0 .
Find x y,( )
4
3−
=