HP 15C Programming Tutorial Posted Eddie W. Shore Unregistered Posts: 764 Threads: 118 Joined: Aug 2007 12-11-2011, 01:30 PM The latest installment: Part 14 (Complex Numbers) Geir Isene Unregistered Posts: 896 Threads: 183 Joined: Jul 2005 12-11-2011, 04:16 PM Now that's a good and useful blog right there. Thanks. Thomas Klemm Unregistered Posts: 735 Threads: 34 Joined: May 2007 12-14-2011, 12:40 PM The comparison of the two methods to enter complex numbers confused me slightly because in the first example you start with a stack [x y z t], enter a and b and end up with [a+ib x y y], while in the second example you start with [y z t ?]. Why? I'd start with [x y z t] as well and end up with [a+ib x y z] instead. As I always considered the stack as the interface to communicate with the calculator I don't esteem your solution to solve the quadratic equation much. You can do it without storing any numbers into registers. See message 2 in: Short quadratic solver (HP-15C) To solve your first example you'd just enter the three coefficients of the quadratic equation and run the program: ```2 ENTER 3 I 3 CHS ENTER 4 CHS I 2 Re<>Im E ``` Both solutions are now on the stack. You can use x<>y and (i) to display them. Bonus: the same program can also be used for real coefficients. Kind regards Thomas Edited: 14 Dec 2011, 12:44 p.m. « Next Oldest | Next Newest »

 Possibly Related Threads… Thread Author Replies Views Last Post HP Prime Tutorial #6 and #7: Drawing Eddie W. Shore 2 1,744 12-10-2013, 08:16 AM Last Post: Eddie W. Shore HP Prime Tutorial #4 is up (CASE/CHOOSE/INPUT) Eddie W. Shore 1 1,160 11-15-2013, 07:32 AM Last Post: Davi Ribeiro de Oliveira HP Prime Programming Tutorial #3: WHILE, INPUT, KILL, REPEAT, GETKEY Eddie W. Shore 5 2,137 11-07-2013, 12:25 AM Last Post: Han HP Prime Programming Tutorial #1: LOCAL, RETURN Eddie W. Shore 6 2,760 10-26-2013, 08:42 PM Last Post: Miguel Toro HP Prime Programming Tutorial #2: MSGBOX, IF-THEN-ELSE, PRINT, FOR Eddie W. Shore 0 1,112 10-26-2013, 03:51 PM Last Post: Eddie W. Shore New HP 35S Programs posted on my blog Eddie W. Shore 2 1,458 06-08-2013, 03:47 PM Last Post: Glenn Shields [41CL] Memory Reference posted Monte Dalrymple 12 3,383 05-01-2013, 03:39 PM Last Post: Etienne Victoria HP 39gii Programming Tutorial Part 7 Eddie W. Shore 0 896 04-05-2013, 11:10 PM Last Post: Eddie W. Shore HP 39gii Programming Tutorial Part 6: Interactive Programs Eddie W. Shore 0 821 04-01-2013, 06:00 PM Last Post: Eddie W. Shore HP 39gii Tutorial Part 5 Up (finally) Eddie W. Shore 1 1,125 03-31-2013, 02:21 AM Last Post: Gilles Carpentier

Forum Jump: