private void toMagnitude(double[] re){
  for (int i=0; i < re.length; i++)   re[i]=Math.sqrt(re[i]);
}

private void toMagnitude ( double [ ] re ) { for ( int i = 0 ; i < re . length ; i ++ ) re [ i ] = Math . sqrt ( re [ i ] ) ; }
converts a real power sequence from to magnitude representation , by computing the square root of each value .
