(35S ALG) Quadratic Equation Solver (with complex solutions support) - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (35S ALG) Quadratic Equation Solver (with complex solutions support) (/thread-3401.html) |
(35S ALG) Quadratic Equation Solver (with complex solutions support) - BartDB - 03-17-2015 10:57 AM Based on this article: http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/articles.cgi?read=1003 It is a simple program using the traditional quadratic root formula: $$\frac{-b±\sqrt{b^{2}-4ac}}{2a}$$ the program is converted for use in ALG mode: Code:
In RPN mode the 35s will dispay 2 lines, thus both roots. In ALG mode only one line is displayed. After running the program, use x<>y to swap between roots. |