Complex numbers in the modelica
I am working on problems which involves complex numbers. Specifically, I solving set of equations and few parameters of results are complex numbers. Now I wanted to separate Real and Imag part of it for further usage but not able to separate it. It is similar as Re and Im functions in MATLAB. Please help me out with it.
OpenModelica Functions-and-Types 00-01 min 0-10 sec
If num is the complex number defined in OpenModelica. You can access the real part of num as num.re and imaginary part as num.im. If num is array, then use num[index].re for real part and num[index].im for imaginary part.