complex numbers with integrateODE
mas1126
Hello,
I'm trying to use the ODE solver for the first time in Igor 6. Both my input and output waves (yw and dydx using the convention in the help files) are complex. I've tried using
wave/c yw
wave/c dydx
wave/c dydx
in the derivative function to define my input and output waves. The function compiles alright, but when I try to run the integrateODE function I get an error that "The function has the wrong parameter types or wrong number of parameters to use as an ODE function."
I assume this is because of the complex values. Is there another way to solve ODEs with complex components in Igor? Or a trick to get around this?
Thanks!
You might find the attached (very old) link, including a referred comment from John Weeks, helpful:
https://www.wavemetrics.com/code-snippet/differential-equations-complex…
July 6, 2021 at 02:44 am - Permalink
And, since IntegrateODE hasn't changed much, that old link is still relevant.
July 6, 2021 at 10:26 am - Permalink