<-[[.:start]] ====== DM41X PPC ROM ====== ** Various useful functions from the PPC ROM ** * PPC Manual from here : [[https://literature.hpcalc.org/items/1330]] ===== Solve (SV) ===== Similar to other Solvers (e.g. the Advantage Pac [[dm41x_solve|Solve]]) but with some minor differences to be aware of. * Put the Global Label (name) of the program (in this example it's ''LBL AA'') containing the expression to be solved in register 6 * ALPHAAAALPHA * XEQALPHA''ASTO''ALPHA''06'' * The program with the expression to be solved must be written as though unknown ''x'' is on the x-stack only * other solvers "fill the stack" with ''x'' * here you need to manipulate the stack to get ''x'' as needed. It's easiest is to just ''ENTER'' ''ENTER'' ''ENTER'' and then treat the stack the same as other solvers (i.e. as if it's filled with ''x'' and you use ''x<>y'' to pull a fresh copy of ''x'' as needed in the expression). * Put a "step size" in y and a "start value" in x (e.g. ''-3'') * ''0'' ENTER ''-3'' * run ''SV'' ==== example ==== 2x^2 + 3x -4 = 0 Prog "AA" LBL AA ENTER ENTER ENTER x^2 2 * x<>y 3 * + 4 - RTN === for the first root === * ''0'' ENTER ''1'' * XEQALPHA ''SV'' ALPHA and the answer comes..... ''0.850781059'' === for the second root === * ''0'' ENTER ''-3'' * XEQALPHA ''SV'' ALPHA and the answer comes..... ''-2.350781060'' --- //John Pumford-Green 24/01/26 10:29 GMT// ===== Further Information ===== {{tag>calculator dm41x}}