Complex numbers and equation optimization using GA
Hi
I am currently trying to write a genetic algorithm to find the zero off a very big equation.
The problem is, is that it involves numerus complex numbers. Only at the very last stage in the program do I want to convert these complex numbers into real numbers.
This is done so I can plot the real and imaginary parts of the eigenvalue pairs so I can find the point were they cross the axis.
BUT I can not find away of of using complex numbers in c++. and to convert these equations into two X = Real(X) + i * imaginary(X). would literally take days of rearranging equations !!.
Is there any way I can get around this problem?
Also whilst im at it my idea was to then import the complex numbers Eign_1_1 -> Eign_2_2 into another program were I would then split them into Real(Eign_1_1) and imag(Eign_1_1) which the zero would be then found using an evolutionary algorithm.
Any ideas on how to do this part?
Thanks
Craig
Last edited by Nighteyes; July 17th, 2008 at 02:37 PM.
Reason: spelling... esp my name :P
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.