(12C Platinum) Two Linear Equations in Two Unknowns
|
11-28-2018, 08:15 AM
Post: #1
|
|||
|
|||
(12C Platinum) Two Linear Equations in Two Unknowns
Here is my first attempt to program in ALG mode.
This program solve for Simultaneous Equation in Two Unknowns. ----------------------------------------------- Formula using Cramer's Rule Equations: Ax + By = e Cx + Dy = f If AD - BC = 0 there is No Solution. ------------------------------------------- Procedure: Input: A [R/S] B [R/S] e [R/S] C [R/S] D [R/S] f [R/S] [R/S] Display: X [R/S] Y ------------------------------------------ Example: 2X - Y = 15 X + 2Y = 30 2 [R/S] 1 [CHS] [R/S] 15 [R/S] 1 [R/S] 2 [R/S] 30 [R/S] [R/S] display 12 [R/S] 9 Answer: X=12 and Y=9 ------------------------------------------- X + Y = -1 2X + 2Y = -2 1 [R/S] 1 [R/S] 1 [CHS] [R/S] 2 [R/S] 2 [R/S] 2 [CHS] [R/S] [R/S] Display 0.000000000 briefly then 0.00 Answer: No Solution ------------------------------------------- Program: Linear Equation in Two Unknowns (ALG Mode) Code:
Gamo |
|||
01-16-2019, 04:46 AM
Post: #2
|
|||
|
|||
RE: (12C Platinum) Two Linear Equations in Two Unknowns
ALG Mode Program Version II
Procedure: Same as above except when result is no solution Display "Error 0" ----------------------------------------------------- Program: ALG Mode Code:
Gamo |
|||
01-16-2019, 01:36 PM
(This post was last modified: 01-16-2019 02:01 PM by Albert Chan.)
Post: #3
|
|||
|
|||
RE: (12C Platinum) Two Linear Equations in Two Unknowns | |||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)