HP 15C Programming Tutorial Posted
#1

The latest installment: Part 14 (Complex Numbers)

Eddie's Calculator Blog

#2

Now that's a good and useful blog right there. Thanks.

#3

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.



Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime Tutorial #6 and #7: Drawing Eddie W. Shore 2 1,864 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,278 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,305 11-07-2013, 12:25 AM
Last Post: Han
  HP Prime Programming Tutorial #1: LOCAL, RETURN Eddie W. Shore 6 2,945 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,230 10-26-2013, 03:51 PM
Last Post: Eddie W. Shore
  New HP 35S Programs posted on my blog Eddie W. Shore 2 1,553 06-08-2013, 03:47 PM
Last Post: Glenn Shields
  [41CL] Memory Reference posted Monte Dalrymple 12 3,586 05-01-2013, 03:39 PM
Last Post: Etienne Victoria
  HP 39gii Programming Tutorial Part 7 Eddie W. Shore 0 958 04-05-2013, 11:10 PM
Last Post: Eddie W. Shore
  HP 39gii Programming Tutorial Part 6: Interactive Programs Eddie W. Shore 0 873 04-01-2013, 06:00 PM
Last Post: Eddie W. Shore
  HP 39gii Tutorial Part 5 Up (finally) Eddie W. Shore 1 1,186 03-31-2013, 02:21 AM
Last Post: Gilles Carpentier

Forum Jump: