Compile with gcc Should be: test01, +1.41154e+00, +4.17695e-01, +9.93844e-01, +1.59427e-01, +1.25809e+00, +3.67376e-01, +2.95915e-01 Result: -- C++ time consumed 0.00700425 sec -- C++ time consumed 0.0670615 sec -- C++ time consumed 0.669772 sec test01, +1.41154e+00, +4.17695e-01, +9.93844e-01, +1.59427e-01, +1.25809e+00, +3.67376e-01, +2.95915e-01 Theta, S1.r, S1.i, S2.r, S2.i 0.00, +3.52885e-01, -4.27839e-01, +3.52885e-01, -4.27839e-01 22.50, +3.44554e-01, -4.14362e-01, +3.29828e-01, -3.94049e-01 45.00, +3.21195e-01, -3.76903e-01, +2.65943e-01, -3.03992e-01 67.50, +2.87219e-01, -3.23325e-01, +1.75076e-01, -1.85579e-01 90.00, +2.48609e-01, -2.63824e-01, +7.48392e-02, -6.95864e-02