(12C Platinum) Three Linear Equations in Three Unknowns - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (12C Platinum) Three Linear Equations in Three Unknowns (/thread-11909.html) |
(12C Platinum) Three Linear Equations in Three Unknowns - Gamo - 12-06-2018 09:38 AM This program solve for Simultaneous Equation in Three Unknowns. Formula used Cramer’s Rule for a 3×3 System (with Three Variables) Equations: a1(X) + b1(Y) + c1(Z) = d1 a2(X) + b2(Y) + c2(Z) = d2 a3(X) + b3(Y) + c3(Z) = d3 Detail information on how this formula work by follow this page at https://www.chilimath.com/lessons/advanced-algebra/cramers-rule-with-three-variables/ ------------------------------------ Procedure: Input each columns from top left down. a1 [R/S] a2 [R/S] a3 [R/S] b1 [R/S] b2 [R/S] b3 [R/S] c1 [R/S] c2 [R/S] c3 [R/S] d1 [R/S] d2 [R/S] d3 [R/S] --> Answer X [R/S] Y [R/S] Z ----------------------------------- Example: x - 8y + z = 4 -x + 2y + z = 2 x - y + 2z = -1 1 [R/S] 1 [CHS] [R/S] 1 [R/S] 8 [CHS] [R/S] 2 [R/S] 1 [CHS] [R/S] 1 [R/S] 1 [R/S] 2 [R/S] 4 [R/S] 2 [R/S] 1 [CHS] [R/S] --> -3 [R/S] -0.80 [R/S] 0.60 Answer: X = -3 Y = -0.8 Z = 0.6 ------------------------------------- Remark: If Determinant = 0 Display will show 0.000000000 briefly then 0.00 This indicate NO SOLUTIONS ------------------------------------- Program: (RPN mode) Code:
This program can be use to solve for "Two Equations of Two Unknowns" as well. Procedure: x y 0 = c1 x y 0 = c2 0 0 1 = 1 Example: 2X - Y = 15 X + 2Y = 30 2 [R/S] 1 [R/S] 0 [R/S] 1 [CHS] [R/S] 2 [R/S] 0 [R/S] 0 [R/S] 0 [R/S] 1 [R/S] 15 [R/S] 30 [R/S] 1 [R/S] --> 12 [R/S] 9 [R/S] 1 Answer: X = 12 Y = 9 Ignore 1 -------------------------------------------------------- Program: (ALG Mode) Remark: R for [RCL] ST for [STO] Quote:ST1 R/S ST2 R/S ST3 R/S Gamo |