Hi I just want to check my code is working properly as I am trying to rule out any errors.
I'm integrating 4 coupled ODE's that have real and imaginary terms, so I have 8 equations.
The section of code I'm worried about is where I separate real and imaginary terms.
dkai1BYdx3 = ComplexExpand[Delta1*kai1 + Delta2*kai3]; Kai1REAL = Re[dkai1BYdx3]; Kai1IMAG = Im[dkai1BYdx3];
Will this code separate the real and imaginary parts of dkaiBYdx3 correctly? It contains non trivial functions.