Complex Solving w HP15C? « Next Oldest | Next Newest »

 ▼ Matti Övermark Junior Member Posts: 46 Threads: 22 Joined: Nov 2007 07-27-2005, 10:02 AM Hello Fellows, I recall somebody mentioned that the solver built in into the HP-15C actually could be used to (numerically of course) solve complex roots. I did it in high school back in the early 80s, but being old has its disadvantages... ;). Anyone remember? I RCL flag 8 was set and that there was an swaprecall of the imaginary and real registers multiplied and absolutevalued = 0. /Matti ▼ Miki Mihajlovic Member Posts: 121 Threads: 26 Joined: Jul 2005 07-27-2005, 10:06 PM From HP-15 Advanced Function Handbook: "The SOLVE and INTEGRATE functions use algorithms that sample your function at values along the real axis. In Complex mode, these functions operate with only the real stack, even though your function subroutine may have complex computations in it. For example, SOLVE will not search for the roots of a complex function, but rather will sample the function on the real axis and search for a zero of the function's real part..." In the other words, you have to write a program that will solve for imaginary roots. There are some examples in the handbook. ▼ Matti Övermark Junior Member Posts: 46 Threads: 22 Joined: Nov 2007 07-28-2005, 04:51 AM Ok, thanks. /Matti Karl Schneider Posting Freak Posts: 1,792 Threads: 62 Joined: Jan 2005 07-29-2005, 02:50 AM Matti posted, Quote: I recall somebody mentioned that the solver built in into the HP-15C actually could be used to (numerically of course) solve complex roots. I RCL flag 8 was set and that there was an swaprecall of the imaginary and real registers multiplied and absolutevalued = 0. Miki responded, Quote: From HP-15 Advanced Function Handbook: "The SOLVE and INTEGRATE functions use algorithms that sample your function at values along the real axis. In Complex mode, these functions operate with only the real stack, even though your function subroutine may have complex computations in it. For example, SOLVE will not search for the roots of a complex function, but rather will sample the function on the real axis and search for a zero of the function's real part..." In the other words, you have to write a program that will solve for imaginary roots. There are some examples in the handbook. Based on the info from the AFH (which I have, and a scan on CD/DVD can be purchased from this website), it's quite easy to solve for the imaginary part of a complex-valued function: Calculate the function in Complex mode (SF 8), then do Re<>Im just before RTN in the function to leave the imaginary part as the return value of the function. Complex-valued roots are a bit more complicated, but it seems that you might be referring to the technique and program listed on pp. 80-85 in the AFH. It uses SF 8, Re<>Im, as well as ABS on a complex-valued residual, to solve for complex-valued roots of a general equation (not merely a polynomial). Quote: I did it in high school back in the early 80s, but being old has its disadvantages... ;). Hey! "Old"? I graduated high school in 1981....

 Possibly Related Threads... Thread Author Replies Views Last Post HP Prime: complex numbers in CAS. Alberto Candel 1 1,437 12-06-2013, 02:36 PM Last Post: parisse [HP Prime] Plots containing complex numbers bug? Chris Pem10 7 2,929 12-05-2013, 07:40 AM Last Post: cyrille de Brébisson [HP Prime] Tips for Solving Differential Equations More Efficiently Chris Pem10 8 2,384 11-21-2013, 08:25 PM Last Post: Chris Pem10 Complex Number Entry on Prime Jeff O. 19 4,004 11-16-2013, 12:34 PM Last Post: Jeff O. HP-PRIME CAS SOLVING fabrice48 8 2,316 10-19-2013, 01:21 PM Last Post: Han 1984 HP15C rattles Footloose (Illinois) 4 1,591 10-15-2013, 09:43 PM Last Post: BobVA HP Prime complex results Javier Goizueta 0 817 10-06-2013, 12:59 PM Last Post: Javier Goizueta HP15c continued fraction for Ln(Gamma) Tom Grydeland 0 937 09-30-2013, 05:48 AM Last Post: Tom Grydeland HP Prime Solving Nonlinear System of Equations for Complex Results Helge Gabert 11 3,470 09-30-2013, 03:44 AM Last Post: From Hong Kong [HP-Prime xcas] operations with complex numbers + BUGs + Request CompSystems 9 2,924 09-08-2013, 10:40 PM Last Post: CompSystems

Forum Jump: