(71B) Right Triangle Solver - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (71B) Right Triangle Solver (/thread-7463.html) |
(71B) Right Triangle Solver - Eddie W. Shore - 12-23-2016 07:20 PM Right Triangle Solver The program RIGHTTRI is a solver for the sides A, B, and C. To solve for the third side, the desired side needs to have a 0 value, while the other two sides have non-zero values. Each time a solution is found, the values of A, B, and C are reset (set to 0). Program RIGHTTRI 502 Bytes, 12/22/2016 Code: 10 DESTROY A,B,C,Z$ Notes: The line of IF A=0 AND B AND C… tests whether A is zero, B and C are non-zero. You can test whether a variable is non-zero by just typing the variable in an IF condition. The function SQR is the square root function of the HP 71B. Anything following an exclamation point (!) is a comment. |