I have a txt file with several columns and i want to peform an operation on two columns and output it to a new txt file .
file.txt
900.00000 1 1 1
500.00000
500.00000
100000.000
4
4
1.45257346E-07 899.10834 67.780083 -3.0000000 6.9356270 0 4
3.36595804E-07 854.32300 67.787216 -2.0000000 -5.6963296 0 4
4.59328561E-07 764.32300 67.784538 2.0000000 -3.8667135 0 4
8.10901852E-08 809.10840 67.784058 3.0000000 5.9845576 0 4
I want to consider the first column from line 7
i= complex number exp(ix)= cosx +i sinx , pi =3.14
operation = 1.45257346E-07 * exp (899.10834 * i * pi/180)
general expression = (first column number) * exp (second column number * i * 0.0174)