//+------------------------------------------------------------------+ //| cmath.mqh | //| Copyright 2025, MetaQuotes Ltd. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2025, MetaQuotes Ltd." #property link "https://www.mql5.com" //+------------------------------------------------------------------+ //| utilities for working with complex numbers | //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| get real part from container of complex numbers | //+------------------------------------------------------------------+ void real(complex& data[],double& out[]) { // Resize the output array to match the source array size ArrayResize(out,data.Size()); // Extract the real component element-by-element for(ulong i = 0; i