Post Reply 
(42S) Iterative refinement
07-23-2015, 08:11 AM (This post was last modified: 06-15-2017 01:28 PM by Gene.)
Post: #1
(42S) Iterative refinement
See the article with the same subject. I never know where to post these, so I put them in both :-). And comments are disabled for articles, for some reason.
Quick usage instructions:
Put A and b on the stack, just as you would for a normal solve, so b ENTER A
Then XEQ "/IR" will solve the system and perform a corrective refinement step, leaving the result in X. If you are careful to leave the stack undisturbed (as browsing the result with EDIT, arrows, EXITALL will do), you may execute further refinement steps with R/S.

Code:
                L       X       Y       Z       T
00 { 58-Byte Prgm }
01>LBL "/IR"            A       b
02 X<>Y
03 ENTER
04 TRANS                bt      b       A
05 RCL ST Z             A       bt      b       A
06 STO/ ST Z            A       bt      x       A
07 TRANS
08 EDIT
09 INSR                 0       bt      x       A
10 Rv                   bt      x       A
11 PUTM
12 CLX
13 RCLEL
14 EXITALL
15 TRANS                bA      x       A
16 X<>Y
17>LBL 02               x       bA      A
18 STO ST L     x       x       bA      A
19 EDIT
20 INSR
21 -1
22 EXITALL      x       -1x     bA      A
23 X<> ST L     -1x     x       bA      A
24 RCL ST Y     -1x     bA      x       bA      A
25 RCLx ST L            Ax-b    x       bA      A
26 RCL/ ST T            -dx     x       bA      A
27 -                    x       bA      A
28 RTN
29 GTO 02
30 END

Werner

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(42S) Iterative refinement - Werner - 07-23-2015 08:11 AM
RE: [42S] Iterative refinement - Gerald H - 07-23-2015, 09:32 AM
RE: [42S] Iterative refinement - Gerald H - 07-23-2015, 01:14 PM
RE: [42S] Iterative refinement - Werner - 07-23-2015, 01:39 PM
RE: [42S] Iterative refinement - Gerald H - 07-25-2015, 05:21 AM
RE: [42S] Iterative refinement - Werner - 07-25-2015, 07:18 AM
RE: [42S] Iterative refinement - Gerald H - 07-25-2015, 08:30 AM
RE: [42S] Iterative refinement - Gerald H - 02-29-2016, 08:55 AM



User(s) browsing this thread: 1 Guest(s)