Post Reply 
(15C) Nth Degree Polynomial Program
11-06-2022, 02:15 PM (This post was last modified: 11-06-2022 03:10 PM by Thomas Klemm.)
Post: #4
RE: 15C Nth Degree Polynomial Program
We don't have to use a separate counter.
The RCL user A skips the next command once the end of the matrix is reached.

Make sure to set user mode while entering the program:
Code:
001 - 42,21,11  LBL A           
002 - 42,16, 1  MATRIX 1        
003 -        0  0               
004 -    22  1  GTO 1           
005 - 42,21, 0  LBL 0           
006 -       40  +               
007 -       20  x               
008 - 42,21, 1  LBL 1           
009 u    45 11  RCL user A      
010 -    22  0  GTO 0           
011 -       40  +               
012 -    43 32  RTN

Both SOLVE and \(\int_y^x\) fill the stack before calling the function.
If the function is used otherwise add an ENTER command right after LBL A to fill the stack.



For those using Torsten's HP-15C simulator:
Code:
   000 {             }
   001 {    42 21 11 } f LBL A
   002 {    42 16  1 } f MATRIX 1
   003 {           0 } 0
   004 {       22  1 } GTO 1
   005 {    42 21  0 } f LBL 0
   006 {          40 } +
   007 {          20 } ×
   008 {    42 21  1 } f LBL 1
   009 {    45 11  u } RCL A
   010 {       22  0 } GTO 0
   011 {          40 } +
   012 {       43 32 } g RTN
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 15C Nth Degree Polynomial Program - Thomas Klemm - 11-06-2022 02:15 PM



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