Program :
Table of Contents 13 Coordinate Geometry: Centroid, Incentre, Orthocentre, Circumcentre, Radius of the Circumcircle and Equation of the Circumcircle. 坐標幾何 : 三角形的重心 內心 垂心 外心 外心圓半徑及圓方程 P.2 14 15 16 17 18 19 20 21 22 23 24 25 Coordinate Geometry: Area of Polygon with Given Coordinates of Vertices 坐標幾何 : 用已知頂點坐標求多邊形面積 Coordinate Geometry: Point of division, istance, Slope, y-intercept and Equation of Straight Line. 坐標幾何 : 分界點 距離 斜率 y- 截距及直線方程 istance from a point to a straight line 點至直線的距離 Equation of Tangents to a Circle with Given slope 用已知斜率求圓的切線方程 Equation of Tangents to circle from an external point 外點至圓的切線方程 Rotation 旋轉 Binomial, Geometric and Poisson istributions 二項分佈 幾何分佈及泊松分佈 The eterminant, Adjoint and Inverse of 2 2 matrices 二階矩陣的行列式 伴隨矩陣及逆矩陣 The Characteristic polynomial and ultiplication of 2 2 matrices 二階矩陣特徵多項式及乘法 Ray Woo's Program: The ultiplication, eterminant, Adjoint, and Inverse matrix of 3 3 matrices Ray Woo's Program: 三階矩陣乘法 行列式 伴隨矩陣及逆矩陣 Characteristic polynomial of a 3 3 matrix 三階矩陣特徵多項式 The Check digit of HK I Card number 香港身份證號碼核對數位 P.7 P.10 P.13 P.15 P.17 P.20 P.23 P.30 P.35 P.39 P.49 P.52
Program 13: Coordinate Geometry: Centroid, Incentre, Orthocentre, Circumcentre, Radius of the Circumcircle and Equation of the Circumcircle. 坐標幾何 : 三角形的重心 內心 垂心 外心 外心圓半徑及圓方程 13 Coordinate Geometry: Centroid, Incentre, Orthocentre, Circumcentre, Radius of the Circumcircle and Equation of the Circumcircle. 坐標幾何 : 三角形的重心 內心 垂心 外心 外心圓半徑及圓方程 Suitable for Casio FX-50FH and Casio FX-50FH II 適合 Casio FX-50FH 及 Casio FX-50FH II 計算機 已知三角形三個頂點 (Vertex) 的坐標, 程式可依次計算三角形的重心 (Centroid) 內心 (Incentre) 垂心 (Orthocentre) 外心 (Circumcentre) 外心圓半徑 (Radius of Circumcentre) 及圓方程 (Equation of Circumcircle) 程式需要在 REG 中的 Lin 模式下執行, 選擇程式位置後按再按進入 Lin 模式 選擇 REG FreqOn:? A:? B:? C:? :? X:? Y: X, Y ; Pol( C - A, - B T: Pol(maxX - C, maxy - : ((maxx - A ) 2 + (maxy - B ) 2 Y: X+Y+n : (maxx +A + C ) 3 (maxy +B + ) 3 (Σx +XA+CY) (Σy +XB+Y) (maxx - A) (maxy - B : C+ X: (C - A) ( - B: (X - maxy - Ans maxx ) ( - Ans Y X - Y (maxx + A + C - Y) 2 A (maxy + B + - ) 2 B Pol( C - A, - B -2A -2B A 2 + B 2 - X 2 225 Steps 2
CASIO FX-50FH II 實戰應用 輸入的模式為三角形三個頂點 (Vertex) 的坐標, (A,B), (C,) 及 (X,Y) 輸入的次序為 A, B, C,, X, Y 輸出的次序為 (1) 重心 (Centroid) (2) 內心 (Incentre) (3) 垂心 (Orthocentre) (4) 外心 (Circumcentre) (5) 外心圓半徑 (Radius of Circumcentre) (6) 2 2 圓方程 (Equation of Circumcircle) x + y + x + Ey + F = 0 依次輸出 E 及 F 3
Program 13: Coordinate Geometry: Centroid, Incentre, Orthocentre, Circumcentre, Radius of the Circumcircle and Equation of the Circumcircle. 坐標幾何 : 三角形的重心 內心 垂心 外心 外心圓半徑及圓方程 Example 1 R ay Woo s Problem 已知 ABC 的頂點 A 及 C 三點的坐標分別為 (9, 6) (9, 0) 及 (1, 0), 求的重 心 內心 垂心 外心 外心圓半徑及外心圓方程 Solution 按 ( 頂點 A 的 x 坐標 ) ( 頂點 A 的 y 坐標 ) ( 頂點 B 的 x 坐標 ) ( 頂點 B 的 y 坐標 ) ( 頂點 C 的 x 坐標 ) ( 頂點 C 的 y 坐標 ) 重心的 x 坐標 REG PRG P1 (maxx+a+c) 3 19 3isp 再按顯示重心的 y 坐標, 即重心坐標為 ( 19 3,2) 再按顯示內心的 x 坐標 REG PRG P1 (maxy+b+) 3 REG PRG P1 ( x+xa+cy) 2. isp 7. isp 4
CASIO FX-50FH II 實戰應用 再按顯示內心的 y 坐標, 即內心坐標為 (7, 2) REG PRG P1 ( y+xb+y) 2. isp 再按顯示垂心的 x 坐標 REG PRG P1 (X-maxY-AnsmaxX) 9. isp 再按顯示垂心的 y 坐標, 即垂心坐標為 (9, 0) REG X-Y-> PRG P1 0. isp 再按顯示外心的 x 坐標再按顯示外心的 y 坐標, 即外心坐標為 (5, 3) REG PRG P1 (maxx+a+c-y) 2->A REG PRG P1 5. isp (maxy+b+-) 2->B 3. isp 再按顯示外心圓半徑 REG PRG P1 Pol(C-A,-B 5. isp 再按顯示外心圓方程的 -2A REG PRG P1-10. isp 再按顯示外心圓方程的 E -2B REG PRG P1-6. isp 5
Program 13: Coordinate Geometry: Centroid, Incentre, Orthocentre, Circumcentre, Radius of the Circumcircle and Equation of the Circumcircle. 坐標幾何 : 三角形的重心 內心 垂心 外心 外心圓半徑及圓方程 再按顯示外心圓方程的 F, 即外心圓方程為 2 2 x + y -10x- 6y+ 9= 0 REG A 2 + B 2 - X 2 9. 答案 : 重心 = ( 19 3,2) 內心 = (7,2) 垂心 = (9,0) 外心 = (5,3) 外心圓半徑 = 5 及 2 2 外心圓方程為 x + y -10x- 6y+ 9= 0 6
CASIO FX-50FH II 實戰應用 14 Coordinate Geometry: Area of Polygon with Given Coordinates of Vertices 坐標幾何 : 用已知頂點坐標求多邊形面積 Suitable for Casio FX-50FH and Casio FX-50FH II 適合 Casio FX-50FH 及 Casio FX-50FH II 計算機 已知多邊形頂點 (Vertex) 的坐標, 程式可計算出多邊形面積 Clremory: While 1: Y:? X:? Y: X Ans - AY +: X A: Abs(. 5 X: WhileEnd 34 Steps 輸入的模式及次序為 (1) 順時針或逆時針輸入多邊形的頂點坐標 (X 為 X 坐標,Y 為 Y 坐標 ) (2) 第一點的坐標需要在最後輸入多一次 7
Program 14: Coordinate Geometry: Area of Polygon with Given Coordinates of Vertices 坐標幾何 : 用已知頂點坐標求多邊形面積 Example 求以下多邊形的面積 y (5, 6) (1, 4) (9, 2) O x (2, -2) Solution 步驟一 : 求其揀一點, 例如揀 (5,6) 步驟二 : 順時針或逆時針方向輸入坐標, 第一點的坐標需要在最後輸入多一次 y (5, 6) (1, 4) (9, 2) 0 x (2, -2) 8
CASIO FX-50FH II 實戰應用 按 ( 第一點的 X 坐標及 Y 坐標 ) ( 下一點的 X 坐標及 Y 坐標 ) ( 下一點的 X 坐標及 Y 坐標 ) ( 下一點的 X 坐標及 Y 坐標 ) ( 第一點的 X 坐標及 Y 坐標要在最後輸入多一次 ) 多邊形面積為 X? PRG P1 35. 答案 : 多邊形面積為 35 sq.units 9
Program 15: Coordinate Geometry: Point of division, istance, Slope, y-intercept and Equation of Straight Line. 坐標幾何 : 分界點 距離 斜率 y- 截距及直線方程 15 Coordinate Geometry: Point of division, istance, Slope, y-intercept and Equation of Straight Line. 坐標幾何 : 分界點 距離 斜率 y- 截距及直線方程 Suitable for Casio FX-50FH and Casio FX-50FH II 適合 Casio FX-50FH 及 Casio FX-50FH II 計算機 已知兩點坐標及線段內分比例, 程式可依次計算出分界點 (Point of division) 兩點距離 (istance) 斜率(Slope) 兩點直線方程的 y- 截距 (y-intercept) 及兩點的直線方程 (Equation of Straight Line)? A:? B:? C:? :? : 1+ : C - A A: - B B: C - A - B Pol(A,B B A - C Ans 60 steps 輸入的模式為 兩點坐標及線段內分比例, (A,B), (C,) 及 輸入的次序為 A, B, C,, 10
CASIO FX-50FH II 實戰應用 Example R ay Woo s Problem 已知 A = (-8,12) 及 B = (4,10),P 為 AB 上的一點使得 AP : PB = 5 : 7 (a) 求 P 的坐標 (b) 求 AB 的距離 (distance) (c) 求 AB 的斜率 (slope) (d) 求 AB 的直線方程 (equation of straight line) Solution 按 (A 的 X 坐標 ) (A 的 Y 坐標 ) (B 的 X 坐標 ) (B 的 Y 坐標 ) AP ( AP : PB = 5 : 7, 即 PB = 5 7, 5 所以輸入 7 ) P 的 x 坐標 C-A PRG P1-3. isp 再按 顯示 P 的 y 坐標, 即 P 的坐標為 (-3, 67 ) 6 -B PRG P1 67 6isp 11
Program 15: Coordinate Geometry: Point of division, istance, Slope, y-intercept and Equation of Straight Line. 坐標幾何 : 分界點 距離 斜率 y- 截距及直線方程 再按 AB 的距離 顯示 PRG P1 Pol(A,B 12. 16552506isp 再按 AB 的斜率 顯示 B A PRG P1-1 6isp 再按顯示 AB 的直線方程的 y- 截距 -CAns 32 3 答案 : (a) P 的坐標為 (-3, 67 ) 6 (b) AB 的距離 (distance) 12.16552506 units (c) AB 的斜率 (slope) =- 1 6 (d) 由於 AB 的斜率 (slope) =- 1 及 AB 的直線方程的 y- 截距 6 (y-intercept) = 32 3, 所以 AB 的直線方程 (equation of straight 1 32 line) 為 y =- x+ x+ 6y- 64= 0 6 3 12
CASIO FX-50FH II 實戰應用 16 CASIO FX-50FH II 實戰應用 istance from a point to a straight line 點至直線的距離 Suitable for Casio FX-50FH and Casio FX-50FH II 適合 Casio FX-50FH 及 Casio FX-50FH II 計算機 已知直線方程 L 及 P 點的坐標, 程式可計算 P 點至直線 L 的距離 詳細見下圖 : y L : Ax + By + C = 0 d P(x 1, y 1 ) O x? A:? B:? C:? X:? Y: (2, -2) Abs(AX+BY+C) Pol(A,B 34 steps 輸入的模式為直線方程 Ax + By + C = 0 的係數 A B 及 C, 及點的坐標 (X,Y) 輸入的次序為 A, B, C, X, Y 13
Program 16: istance from a point to a straight line 點至直線的距離 Example R ay Woo s Problem 求點 (5,18) 至直線 4x - 5y + 18 = 0 的距離 y (5, 18) 距離 =? 4x - 5y + 18 = 0 O x Solution 按 ( 直線方程 x 的係數 coefficient) ( 直線方程 y 的係數 coefficient) ( 直線方程的常數 constant) ( 點的 x 坐標 ) ( 點的 y 坐標 ) 點至直線的距離 Abs(AX+BY+C) Pol 8. 12 10356 18 答案 : 點至直線的距離 8.121035618 units 14
CASIO FX-50FH II 實戰應用 17 Equation of Tangents to a Circle with Given slope 用已知斜率求圓的切線方程 Suitable for Casio FX-50FH and Casio FX-50FH II 適合 Casio FX-50FH 及 Casio FX-50FH II 計算機 已知切線方程的斜率及圓的方程, 程式可計算出圓的切線方程的 y- 截距, 再用斜截式 (slope intercept form) 即可寫出圓的切線方程? A:? B:? C:? : A 2 + B 2-4C: 2-1 (A - B - (Ans +Ans 2 A - B - Ans 46 STEPS 輸入的模式為 圓形方程 x 2 + y 2 + Ax + By + C = 0 的係數 A B 及 C, 切線方程的斜率 輸入的次序為 A, B, C, 輸出的模式為 切線方程的 y- 截距 15
Program 17: Equation of Tangent to a Circle with Given slope 用已知斜率求圓的切線方程 Example R ay Woo s Problem 2 2 已知直線的斜率為 2, 該直線與圓 x + y -2x- 4y = 0 相切, 求切線方程 Solution 按 ( 圓方程 x 的係數 coefficient) ( 直線方程 y 的係數 coefficient) ( 圓方程的常數 constant) ( 直線的斜率 ) 切線方程的第一個 y- 截距 PRG P1 2-1 (A-B- (Ans+An -5. isp 再按顯示切線方程的第二個 y- 截距 A-B-Ans 5. 利用斜截式 (slope intercept form) 得出圓的切線方程為 y = 2x - 5 及 y = 2x + 5, 亦即 2x - y - 5 = 0 及 2x - y + 5 = 0 答案 : 切線方程為 2x - y - 5 = 0 及 2x - y + 5 = 0 16
CASIO FX-50FH II 實戰應用 18 Equation of Tangents to circle from an external point 外點至圓的切線方程 CASIO FX-50FH II 實戰應用 Suitable for Casio FX-50FH and Casio FX-50FH II 適合 Casio FX-50FH 及 Casio FX-50FH II 計算機 已知外點的坐標及圓的方程, 程式可計算出圓的切線方程的斜率及 y- 截距, 再用斜截式 (slope intercept form) 即可寫出圓的切線方程? A:? B:? C:? :? : sin -1 ( (C 2 + 2 4) Pol( 2A+C, 2B+ : If 90 o Abs (+Y: Then tan (+Y B A Ans IfEnd: tan (Y B A Ans 77 STEPS 輸入的模式為外點的坐標 (A, B), 圓形方程 x 2 + y 2 + Cx + y + = 0 的係數 C 及 輸入的次序為 A, B, C,, 輸出的模式為 (1) 圓的切線方程的斜率 (2) 圓的切線方程的 y- 截距 17
Program 18: Equation of Tangents to circle from an external point 外點至圓的切線方程 Example R ay Woo s Problem 求從外點 (2, 0) 至圓 x 2 + y 2 + 2x + 2y - 3 = 0 的兩條切線的方程 Solution 按 ( 外點的 x 坐標 ) ( 外點的 y 坐標 ) ( 圓方程 x 的係數 coefficient) ( 圓方程 y 的係數 coefficient) ( 圓方程的常數 constant) 第一條切線方程的斜率 PRG P1 Then tan(+y 2. isp 再按顯示第一條切線方程 y- 截距 B-AAns PRG P1-4. isp 利用斜截式 (slope intercept form) 得出第一條切線方程為 y = 2x - 4, 亦即 2x - y - 4 = 0 18
CASIO FX-50FH II 實戰應用 再按顯示第二條切線方程的斜率 tan(y- PRG P1-0.5isp 再按顯示第二條切線方程 y- 截距 B-AAns 1. 利用斜截式 (slope intercept form) 得出第二條切線方程為 y = -0.5x + 1, 亦即 x + 2y - 2 = 0 答案 : 兩條切線方程為 2x - y - 4 = 0 及 x + 2y - 2 = 0 19
Program 19: Rotation 旋轉 19 Rotation 旋轉 Suitable for Casio FX-50FH and Casio FX-50FH II 適合 Casio FX-50FH 及 Casio FX-50FH II 計算機 已知坐標 (X, Y), 程式可計算坐標對住原點 (origin) 旋轉 o 之後的新坐標? X:? Y:? : Rec( Pol ( X, Y, Y - Y 23 STEPS 輸入的模式為 坐標 (X, Y) 及對住原點 (origin) 旋轉的角度 o Remarks: 順時針轉, 角度為正 逆時針轉, 角度為負 輸入的次序為 X, Y, 輸出的模式為新坐標 20
CASIO FX-50FH II 實戰應用 Example 1 R ay Woo s Problem 求點 (6, 8) 繞原點順時針方向旋轉 90 o 的坐標 Solution 按 ( 坐標的 x 坐標 ) ( 坐標的 y 坐標 ) ( 順時針旋轉 90 o ) 新坐標的 x 坐標 PRG P1 Rec(Pol(X,Y,Y- 8. isp 再按顯示新坐標的 y 坐標 Y -6. 答案 : 新坐標 = (8, -6) 21
Program 19: Rotation 旋轉 Example 2 R ay Woo s Problem 求點 (6, 8) 繞原點逆時針方向旋轉 90 o 的坐標 Solution 按 ( 坐標的 x 坐標 ) ( 坐標的 y 坐標 ) ( 逆時針旋轉 90 o, 角度為 -90 o ) 新坐標的 x 坐標 PRG P1 Rec(Pol(X,Y,Y- -8. isp 再按顯示新坐標的 y 坐標 Y 6. 答案 : 新坐標 = (-8, 6) 22
CASIO FX-50FH II 實戰應用 20 Binomial, Geometric and Poisson istributions 二項分佈 幾何分佈及泊松分佈 Suitable for Casio FX-50FH and Casio FX-50FH II 適合 Casio FX-50FH 及 Casio FX-50FH II 計算機 Clremory:? A:? B:? X: X Y:? Y: For X X To Y: AB => A n C r X B^( X )(1 - B)^(A - X +: B=0 => A(1 - A)^(X - 1+: A=0 => B^( X ) ( X! e^( B +: Next: 86 STEPS 輸入的模式為輸入 A 及 B, 代表計二項分佈 (Binomial istribution) Bin(A,B) 輸入 A 唔輸入 B, 代表計幾何分佈 (Geometric istribution) Ge(A) 輸入 B 唔輸入 A, 代表計泊松分佈 (Poisson istribution) Po(B) X 及 Y 則代表要計的項數 P(X x Y) 輸入的次序為 A,B,X,Y 23
Program 20: Binomial, Geometric and Poisson istributions 二項分佈 幾何分佈及泊松分佈 Example 1 R ay Woo s Problem 若 X ~ Bin(12, 0.6), 求 P(x = 5) Solution 按 (A = 12) (B = 0.6) (X = 5) ( 由於只計算一項,Y 不用輸入 ) 0. 100902371 答案 :P(x = 5) 0.100902371 24
CASIO FX-50FH II 實戰應用 Example 2 R ay Woo s Problem 若 X ~ Bin(12, 0.6), 求 P(3 x 8) Solution 按 (A = 12) (B = 0.6) (X = 3, 因為由 3 開始 ) (Y = 8, 因為去到 8 結束 ) 0.77 1852533 答案 :P(3 x 8) 0.771852533 25
Program 20: Binomial, Geometric and Poisson istributions 二項分佈 幾何分佈及泊松分佈 Example 3 R ay Woo s Problem 若 X ~ Ge(0.6), 求 P(x = 5) Solution 按 (A = 0.6) ( 唔輸入 B, 代表計幾何分佈 (Geometric istribution) ) (X = 5) ( 由於只計算一項,Y 不用輸入 ) 0.0 1536 答案 : P(x = 5) = 0.01536 26
CASIO FX-50FH II 實戰應用 Example 4 R ay Woo s Problem 若 X ~ Ge(0.6), 求 P(3 x 8) Solution 按 (A = 0.6) ( 唔輸入 B, 代表計幾何分佈 (Geometric istribution) ) (X = 3, 因為由 3 開始 ) (Y = 8, 因為去到 8 結束 ) 0. 15934464 答案 :P(3 x 8) 0.15934464 27
Program 20: Binomial, Geometric and Poisson istributions 二項分佈 幾何分佈及泊松分佈 Example 5 R ay Woo s Problem 若 X ~ Po(10), 求 P(x = 5) Solution 按 ( 唔輸入 A, 代表計幾何分佈 (Geometric istribution) ) (B = 10) (X = 5) ( 由於只計算一項,Y 不用輸入 ) 0.037833274 答案 : P(x = 5) 0.037833274 28
CASIO FX-50FH II 實戰應用 Example 6 R ay Woo s Problem 若 X ~ Po(10), 求 P(3 x 8) Solution 按 ( 唔輸入 A, 代表計泊松分佈 (Poisson istribution) ) (B = 10) (X = 3, 因為由 3 開始 ) (Y = 8, 因為去到 8 結束 ) 0.330050283 答案 : P(3 x 8) 0.330050283 29
Program 21: The eterminant, Adjoint and Inverse of 2 2 matrices 二階矩陣的行列式 伴隨矩陣及逆矩陣 21 The eterminant, Adjoint and Inverse of 2 2 matrices 二階矩陣的行列式 伴隨矩陣及逆矩陣 Suitable for Casio FX-50FH and Casio FX-50FH II 適合 Casio FX-50FH 及 Casio FX-50FH II 計算機 程式可計算出二階矩陣的行列式 伴隨矩陣及逆矩陣 (The eterminant, Adjoint and Inverse of 2 2 matrix)? A:? B:? C:? : A - BC X:? X: X - B X - C X A X 45 STEPS 輸入的模式為 矩陣 (atrix) A C B 的 A B C 及 輸入的次序為 A B C 及 30
CASIO FX-50FH II 實戰應用 Example 1 R ay Woo s 求 Problem 1 2 8 9 的行列式 (determinant) 及逆矩陣 (inverse matrix) Solution ( 矩陣第一行 First Row of atrix) ( 矩陣第二行 Second Row of atrix) 行列式 (determinant) x? PRG P1-7. 再按 (X 不輸入代表直接計算 逆方陣 (inverse matrix) ) X PRG P1 顯示逆矩陣第一行, 第一列 ( First Row, First Column of Inverse) -9 7isp 再按顯示逆矩陣第一行, 第二列 ( First Row, Second Column of Inverse) -B X PRG P1 2 7isp 再按顯示逆矩陣第二行, 第一列 (Second Row, First Column of Inverse) -C X PRG P1 8 7isp 31
Program 21: The eterminant, Adjoint and Inverse of 2 2 matrices 二階矩陣的行列式 伴隨矩陣及逆矩陣 再按顯示逆矩陣第二行, 第二列 (Second Row, Second Column of Inverse) A X - 1 7 答案 : 行列式 (determinant) 為 -7 及逆方陣 (inverse matrix) 為 9-7 8 7 2 7 1-7 輸入的矩陣 (atrix) 必須為非奇異矩陣 (Non-singular atrix ), 否則逆方陣 (inverse matrix) 不存在 (does not exist) 並顯示 ath ERROR 32
CASIO FX-50FH II 實戰應用 Example 2 R ay Woo s 求 Problem 1 2 8 9 的行列式 (determinant) 及伴隨矩陣 (Adjoint) Solution ( 矩陣第一行 First Row of atrix) ( 矩陣第二行 Second Row of atrix) 行列式 (determinant) x? PRG P1-7. 再按 (X 輸入代表計算伴隨矩陣 (Adjoint) ) X PRG P1 顯示伴隨矩陣第一行, 第一列 ( First Row, First Column of Adjoint) 9. isp 再按顯示伴隨矩陣第一行, 第二列 (First Row, Second Column of Adjoint) -B X PRG P1-2. isp 再按顯示伴隨矩陣第二行, 第一列 (Second Row, First Column of Adjoint) -C X PRG P1-8. isp 33
Program 21: The eterminant, Adjoint and Inverse of 2 2 matrix 二階矩陣的行列式 伴隨矩陣及逆矩陣 再按顯示伴隨矩陣第二行, 第二列 (Second Row, Second Column of Adjoint) A X 1. 答案 : 行列式 (determinant) 為 -7 及伴隨矩陣 (Adjoint) 為 9-2 -8 1 34
CASIO FX-50FH II 實戰應用 22 The Characteristic polynomial and ultiplication of 2 2 matrices 二階矩陣特徵多項式及乘法 Suitable for Casio FX-50FH and Casio FX-50FH II 適合 Casio FX-50FH 及 Casio FX-50FH II 計算機 程式可計算出二階矩陣 (2 2 matrix) 的特徵多項式 (Characteristic polynomial) 及一個二階矩陣 (2 2 matrix) 和一個 2 n 矩陣的乘積 (n 為正整數 )? A:? B:? C:? : 1 - A - X : A - BC Y : While 1:? X:? Y: AX + BY CX + Y WhileEnd 57 STEPS 輸入的模式為 A B (1) 計算矩陣 (atrix) C 的特徵多項式 (Characteristic polynomial) A B 時, 輸入 C 的 A B C 及 A B (2) 計算矩陣 (atrix) C 及一個 2 n 矩陣的乘積 (n 為正整數 ) 時, A B 輸入 C 的 A B C 及 及 2 n 矩陣的每一個列矩陣 X (column matrix ) Y 的 X 及 Y 輸入的次序為 (1) A B C 及 (2) A B C X 及 Y 35
Program 22: The Characteristic polynomial and ultiplication of 2 2 matrix 二階矩陣特徵多項式及乘法 Example 1 R ay Woo s Problem 求 1 2 8 9 的特徵多項式 (Characteristic polynomial) Solution ( 矩陣第一行 First Row of atrix) ( 矩陣第二行 Second Row of atrix) 特徵多項式 (Characteristic polynomial) 中 l 2 的係數 (coefficient) 特徵多項式 (Characteristic polynomial) 中 l 的係數 (coefficient) 1 x? PRG P1 1. isp PRG P1-10. 特徵多項式 (Characteristic polynomial) 中的的常數項 (constant term) Y? PRG P1-7. 計算完結按 終止程式 答案 : 1 2 8 9 的特徵多項式 (Characteristic polynomial) 為 l 2-10l - 7 36
CASIO FX-50FH II 實戰應用 Example 2 R ay Woo s Problem 求 1 2 8 9 6 7 5 8 2 4 Solution ( 矩陣第一行 First Row of atrix) ( 矩陣第二行 Second Row of atrix) 唔使理此 screen, 再按 1 PRG P1 1. isp 再按 ( 矩陣 6 7 5 8 2 4 第一列 First column of atrix 6 7 5 8 2 4 ) 顯示乘積的第一行, 第一列 (First Row, First Column of Product) 再按乘積的第二行, 第一列 (Second Row, First Column of Product) PRG P1 AX+BY PRG P1 CX+Y 22. isp 120. isp 再按 6 7 5 ( 矩陣 8 2 4 第二列 6 7 5 Second column of atrix 8 2 4 ) 37
Program 22: The Characteristic polynomial and ultiplication of 2 2 matrices 二階矩陣特徵多項式及乘法 顯示乘積的第一行, 第二列 (First Row, Second Column of Product) PRG P1 AX+BY 1 1. isp 再乘積的第二行, 第二列 (Second Row, Second Column of Product) PRG P1 CX+Y 74. isp 再按 6 7 5 ( 矩陣 8 2 4 6 7 5 Third column of atrix 8 2 4 ) 顯示乘積的第一行, 第三列 (First Row, Third Column of Product) 第三列 PRG P1 AX+BY 13. isp 再乘積的第二行, 第三列 (Second Row, Third Column of Product) PRG P1 CX+Y 76. isp 計算完結按 終止程式 答案 : 1 2 8 9 6 7 5 22 11 13 8 2 4 = 120 74 76 38
CASIO FX-50FH II 實戰應用 23 Ray Woo's Program: The ultiplication, eterminant, Adjoint, and Inverse matrix of 3 3 matrices Ray Woo's Program: 三階矩陣乘法 行列式 伴隨矩陣及逆矩陣 Suitable for Casio FX-50FH and Casio FX-50FH II 適合 Casio FX-50FH 及 Casio FX-50FH II 計算機 程式可計算出三階矩陣乘法 伴隨矩陣 逆矩陣及行列式 (The ultiplication, Adjoint, Inverse matrix and eterminant of 3 3 matrix) 程式需要在 REG 中的 Lin 模式下執行, 選擇程式位置後按 再按 進入 Lin 模式 選擇 REG FreqOn:? :? A: ; A-3 T:? B: B-1 T:? C: 1, C T:? : 0, -C T:? A:? B:? C:? :? X: AX-B Y: If : Then ΣxyΣy +BCΣx +ny - XΣxΣy-ACΣxy? : Y (Σxy - XΣx) (BΣx - AΣxy) (BC - XΣy) (Xn - CΣxy) (ΣxyΣy - Bn) (Σy - AC) (CΣx - n) (An - ΣxΣy) : Else X ; 0 T: While 1:? :? X:? Y: n + XΣx + YΣxy Σy + AX + BY ; 0 T: C + X + YAns WhileEnd 239 STEPS 輸入的模式為 (1) 開始 輸入 0 代表計三階矩陣乘法 (ultiplication of 3 3 matrix) (2) 開始 輸入 1 代表計行列式 伴隨矩陣及逆矩陣 (eterminant, Adjoint, and Inverse matrix of 3 3 matrix) 39
Program 23: Ray Woo's Program: The ultiplication, eterminant, Adjoint, and Inverse matrix of 3 3 matrices Ray Woo's Program: 三階矩陣乘法 行列式 伴隨矩陣及逆矩陣 Example 1 R ay Woo s Problem 求 1 1 8 2 2 6 5 2 0 1 3 1 4 1 4 1 1 2 Solution ( 輸入 0 代表計三階矩陣乘法 (ultiplication of 3 3 matrix) 1 1 8 ( 2 2 6 矩陣第一行 First Row of atrix) 5 2 0 1 1 8 ( 2 2 6 矩陣第二行 Second Row of atrix) 5 2 0 1 1 8 ( 2 2 6 矩陣第三行 Third Row of atrix ) 5 2 0 1 3 1 ( 4 1 4 矩陣第一列 First column of atrix) 1 1 2 乘積的第一行, 第一列 (First Row, First Column of Product) 再按乘積的第二行, 第一列 (Second Row, First Column of Product) REG PRG P1 n+xσx+yσxy REG PRG P1 Σy+AX+BY 13. isp 16. isp 40
CASIO FX-50FH II 實戰應用 再按乘積的第三行, 第一列 (Third Row, First Column of Product) REG PRG P1 C+X+YAns 13. isp 再按 Second column of atrix) ( 1 3 1 4 1 4 1 1 2 矩陣第二列 乘積的第一行, 第二列 (First Row, Second Column of Product) 再按乘積的第二行, 第二列 (Second Row, Second Column of Product) 再按乘積的第三行, 第二列 (Third Row, Second Column of Product) REG PRG P1 n+xσx+yσxy REG PRG P1 Σy+AX+BY REG PRG P1 C+X+YAns 12. isp 14. isp 17. isp 再按 Third column of atrix) ( 1 3 1 4 1 4 1 1 2 矩陣第三列 41
Program 23: Ray Woo's Program: The ultiplication, eterminant, Adjoint, and Inverse matrix of 3 3 matrices Ray Woo's Program: 三階矩陣乘法 行列式 伴隨矩陣及逆矩陣 乘積的第一行, 第三列 (First Row, Third Column of Product) 再按乘積的第二行, 第三列 (Second Row, Third Column of Product) 再按乘積的第三行, 第三列 (Third Row, Third Column of Product) REG PRG P1 n+xσx+yσxy REG PRG P1 Σy+AX+BY REG PRG P1 C+X+YAns 2 1. isp 22. isp 13. isp 計算完結按 終止程式 答案 : 1 1 8 2 2 6 5 2 0 1 3 1 4 1 4 1 1 2 = 13 12 21 16 14 22 13 17 13 42
CASIO FX-50FH II 實戰應用 Example 2 R ay Woo s Problem Solution 求 1 1 8 2 2 6 5 2 0 的行列式 (determinant) 及逆矩陣 (inverse matrix) ( 輸入 1 代表計行列式 (determinant) 伴隨矩陣 (adjoint) 及逆矩陣 (inverse matrix)) ( ( ( 1 1 8 2 2 6 5 2 0 1 1 8 2 2 6 5 2 0 1 1 8 2 2 6 5 2 0 矩陣第一行 First Row of atrix) 矩陣第二行 Second Row of atrix) 矩陣第三行 Third Row of atrix) 行列式 (determinant) 再按再按 ( 不輸入代表直接計算逆方陣 (inverse matrix) ) 顯示逆矩陣第一行, 第一列 (First Row, First Column of Inverse) REG PRG P1 Then ΣxyΣy+BCΣx -30. isp REG PRG P1 Y 2 5 isp 43
Program 23: Ray Woo's Program: The ultiplication, eterminant, Adjoint, and Inverse matrix of 3 3 matrices Ray Woo's Program: 三階矩陣乘法 行列式 伴隨矩陣及逆矩陣 再按顯示逆矩陣第一行, 第二列 (First Row, Second Column of Inverse) 再按顯示逆矩陣第一行, 第三列 (First Row, Third Column of Product of Inverse) REG PRG P1 (Σxy-XΣx) REG PRG P1-8 15 isp (BΣx-AΣxy) 1 3 isp 再按顯示逆矩陣第二行, 第一列 (Second Row, First Column of Inverse) REG PRG P1 (BC-XΣy) - 1. isp 再按顯示逆矩陣第二行, 第二列 (Second Row, Second Column of Inverse) REG PRG P1 (Xn-CΣxy) 4 3 isp 再按顯示逆矩陣第二行, 第三列 (Second Row, Third Column of Product of Inverse) REG PRG P1 (ΣxyΣy-Bn) - 1 3 isp 再按顯示逆矩陣第三行, 第一列 (Third Row, First Column of Inverse) REG PRG P1 (Σy-AC) 1 5 isp 再按顯示逆矩陣第三行, 第二列 (Third Row, Second Column of Inverse) REG PRG P1 (CΣx-n) - 1 10 isp 44
CASIO FX-50FH II 實戰應用 再按顯示逆矩陣第三行, 第三列 (Third Row, Third Column of Product of Inverse) REG 0. isp 計算完結按 終止程式 答案 : 行列式 (determinant) 為 -30 及逆方陣 (inverse matrix) 為 2 8 1-5 15 3 4 1-1 - 3 3 1 1-0 5 10 輸入的矩陣 (atrix) 必須為非奇異矩陣 (Non-singular atrix), 否則逆方陣 (inverse matrix) 不存在 (does not exist) 並顯示 ath ERROR 45
Program 23: Ray Woo's Program: The ultiplication, eterminant, Adjoint, and Inverse matrix of 3 3 matrices Ray Woo's Program: 三階矩陣乘法 行列式 伴隨矩陣及逆矩陣 Example 3 R ay Woo s Problem Solution 求 1 1 8 2 2 6 5 2 0 的行列式 (determinant) 及伴隨矩陣 (Adjoint) ( 輸入 1 代表計行列式 (determinant) 伴隨矩陣 (adjoint) 及逆矩陣 (inverse matrix)) ( ( ( 1 1 8 2 2 6 5 2 0 1 1 8 2 2 6 5 2 0 1 1 8 2 2 6 5 2 0 矩陣第一行 First Row of atrix) 矩陣第二行 Second Row of atrix) 矩陣第三行 Third Row of atrix) 行列式 (determinant) 再按再按 ( 輸入代表計算伴隨矩陣 (Adjoint) ) 顯示伴隨矩陣第一行, 第一列 (First Row, First Column of Adjoint) REG PRG P1 Then ΣxyΣy+BCΣx -30. isp REG PRG P1 Y - 12 isp 46
CASIO FX-50FH II 實戰應用 再按顯示伴隨矩陣第一行, 第二列 (First Row, Second Column of Adjoint) 再按顯示伴隨矩陣第一行, 第三列 (First Row, Third Column of Product of Adjoint) REG PRG P1 (Σxy-XΣx) REG PRG P1 (BΣx-AΣxy) 16. isp - 10. isp 再按顯示伴隨矩陣第二行, 第一列 (Second Row, First Column of Adjoint) REG PRG P1 (BC-XΣy) 30. isp 再按顯示伴隨矩陣第二行, 第二列 (Second Row, Second Column of Adjoint) REG PRG P1 (Xn-CΣxy) -40. isp 再按顯示伴隨矩陣第二行, 第三列 (Second Row, Third Column of Product of Adjoint) REG PRG P1 (ΣxyΣy-Bn) 10. isp 再按顯示伴隨矩陣第三行, 第一列 (Third Row, First Column of Adjoint) REG PRG P1 (Σy-AC) -6. isp 再按顯示伴隨矩陣第三行, 第二列 (Third Row, Second Column of Adjoint) REG PRG P1 (CΣx-n) 3. isp 47
Program 23: Ray Woo's Program: The ultiplication, eterminant, Adjoint, and Inverse matrix of 3 3 matrices Ray Woo's Program: 三階矩陣乘法 行列式 伴隨矩陣及逆矩陣 再按顯示伴隨矩陣第三行, 第三列 (Third Row, Third Column of Product of Adjoint) REG 0. isp 答案 : 行列式 (determinant) 為 -30 及伴隨矩陣 (adjoint) 為 -12 16-10 30-40 10-6 3 0 48
CASIO FX-50FH II 實戰應用 24 Characteristic polynomial of a 3 3 matrix 三階矩陣特徵多項式 CASIO FX-50FH II 實戰應用 Suitable for Casio FX-50FH and Casio FX-50FH II 適合 Casio FX-50FH 及 Casio FX-50FH II 計算機 程式可計算出三階矩陣 (3 3 matrix) 的特徵多項式 (Characteristic polynomial) 程式需要在 REG 中的 Lin 模式下執行, 選擇程式位置後按 進入 Lin 模式 選擇 REG 再按 ClrStat:? A:? B: A, B T:? A:? B:? C:? :? X:? Y:? : -1 C++Σx AX + Y - C+BΣy - Σx(C+ ABY - ACX +XΣy - BΣy - Σx(Y - C 93 STEPS 49
Program 24: Characteristic polynomial of a 3 3 matrix 三階矩陣特徵多項式 Example R ay Woo s Problem Solution 求 1 1 8 2 2 6 5 2 0 的特徵多項式 (Characteristic polynomial) ( 矩陣第一行 First Row of atrix) ( 矩陣第二行 Second Row of atrix) ( 矩陣第三行 Third Row of atrix) 特徵多項式 (Characteristic polynomial) 中 l 3 的係數 (coefficient) -1 REG PRG P1-1. isp 特徵多項式 (Characteristic polynomial) 中 l 2 的係數 (coefficient) REG C++Σx PRG P1 3. isp 特徵多項式 (Characteristic polynomial) 中 l 的係數 (coefficient) REG PRG P1 AX+Y-C+BΣy-Σx( 52. isp 50
CASIO FX-50FH II 實戰應用 特徵多項式 (Characteristic polynomial) 中的常數項 (constant term) REG ABY-ACX+XΣy-BΣ -30. 計算完結按 終止程式 答案 : 1 1 8 2 2 6 的特徵多項式 (Characteristic polynomial) 為 5 2 0 - l 2 + 3l + 52l -30 51
Program 25: The Check digit of HK I Card number 香港身份證號碼核對數位 25 The Check digit of HK I Card number 香港身份證號碼核對數位 Suitable for Casio FX-50FH and Casio FX-50FH II 適合 Casio FX-50FH 及 Casio FX-50FH II 計算機 已知身份證頭 7 個數字, 程式可計算出香港身份證號碼核對數位 (The Check digit of HK I Card number) Clremory: 8 A: While A - 1:? B: AB+: A - 1 A: WhileEnd: Fix 0: - +11(1+Rnd( 11 -. 5 : If Ans=11: Then 0: Else Ans: Norm 1 61 STEPS 輸入的模式為 由左至右輸入身份證頭 7 個數字 英文字母代表的數字如下 : A B C E F G H I J K L 1 2 3 4 5 6 7 8 9 10 11 12 13 N O P Q R S T U V W X Y Z 14 15 16 17 18 19 20 21 22 23 24 25 26 輸入的次序為 香港身份證號碼核對數位 (The Check digit of HK I Card number) 52
CASIO FX-50FH II 實戰應用 輸出 10 即代表為 A Example 1 R ay Woo s Problem 求 Y398981(?) 括號中的核對數字 (Check digit) Solution 由左至右輸入身份證頭 7 個數字 (Y=25) 括號中的核對數字 (Check digit) Norm 1 8. 答案 : 括號中的核對數字 (Check digit) 為 8, 即身份證號碼為 Y398981(8) 53
Program 25: The Check digit of HK I Card number 香港身份證號碼核對數位 Example 2 R ay Woo s Problem 求 H311993(?) 括號中的核對數字 (Check digit) Solution 由左至右輸入身份證頭 7 個數字 (H=8) 括號中的核對數字 (Check digit) FIX 0. 答案 : 括號中的核對數字 (Check digit) 為 0, 即身份證號碼為 H311993(0) 54
CASIO COPUTER CO., LT. TOKYO, JAPAN