Plotting complex numbers - Printable Version +- HP Forums ( https://www.hpmuseum.org/forum)+-- Forum: HP Calculators (and very old HP Computers) ( /forum-3.html)+--- Forum: HP Prime ( /forum-5.html)+--- Thread: Plotting complex numbers ( /thread-1581.html) |

Plotting complex numbers - Rich - 06-09-2014 11:14 PM
Hi, is there a way to plot a function that includes a complex number on a 2-D plane? I have tried searching through the user guide v2 and this forum, but can't seem to find any documentation on it. For example G(w)=100/(w*i) I have attached a picture of a wolfram alpha plot below. Thank you [attachment=778] RE: Plotting complex numbers - Helge Gabert - 06-10-2014 03:13 AM
No, unfortunately, to my knowledge, only real functions can be plotted. That would be a nice addition though, if the imaginary parts could be plotted as well for complex-valued functions . . . RE: Plotting complex numbers - Rich - 06-10-2014 04:07 AM
Thank you for the info. RE: Plotting complex numbers - CR Haeger - 06-10-2014 11:39 AM
I think you can use the RE() and IM() commands in the Function App like this: [attachment=779] to give this plot [attachment=780] I think your example only shows imaginary values. Other expressions of interest to plot using RE(), IM() might include: 100/(X*(1+i)) i^X exp^(i*X) Thanks for asking this! The Prime seems pretty useful for exploring real, imaginary functions this way. RE: Plotting complex numbers - Rich - 06-10-2014 11:44 AM
Awesome this is exactly what i needed! Thank you. RE: Plotting complex numbers - Helge Gabert - 06-10-2014 01:45 PM
(06-10-2014 11:39 AM)CR Haeger Wrote: I think you can use the RE() and IM() commands in the Function App like this: Thanks for pointing this out - - that works! I didn't think about IM() because it was somewhat unreliable (together with sqrt) in the previous firmware http://www.hpmuseum.org/forum/thread-646.html but that appears to have been fixed in version 6030! RE: Plotting complex numbers - Wes Loewer - 06-10-2014 04:09 PM
(06-10-2014 11:39 AM)CR Haeger Wrote: I think you can use the RE() and IM() commands in the Function App That's very nice. And a good example of the importance of having color available. -wes |