(45) Calc program simplifies simulataneous equations
|
01-29-2020, 09:07 PM
Post: #1
|
|||
|
|||
(45) Calc program simplifies simulataneous equations
PROBLEM: Solve four simultaneous differential equations in less than four minutes
SOLUTION: Use a minicalculator and the program given here. The program was developed for the HP-45, but can be adapted to other calculators with similar storage capacity. An equivalent program could be written for a calculator with less storage capacity, but execution time would be longer. The program is based on the Gauss algorithm for linear equations and solves a set of simultaneous equations of the form: ┏ ┓ ┃ a₁₁ a₁₂ a₁₃ a₁₄ ┃ ┃x₁┃ ┃c₁┃ ┃ a₂₁ a₂₂ a₂₃ a₂₄ ┃ ┃x₂┃ ┃c₂┃ ┃ a₃₁ a₃₂ a₃₃ a₃₄ ┃ ┃x₃┃=┃c₃┃ ┃ a₄₁ a₄₂ a₄₃ a₄₄ ┃ ┃x₄┃ ┃c₄┃ ┗ ┛ where the aij and ci terms are known. The xi terms are the unknowns. The four answers are displayed in the last four steps of the program: RCL 1 displays x1, RCL 2 displays x2, RCL 3 displays x3, RCL 4 displays x4. The only possible problem for an independent set of equations is that division by zero may occur (this is indicated by a blinking display on the HP-45). If this happens, simply switch order of the equations and try again. Code:
source: tech briefs, C.Rubin, May 1 1975, pg. 89 BEST! SlideRule |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)