I am trying to write a code in Fortran 90 that reads the data from 3 different files (called "data1.dat", "data2.dat", data3.dat"). All the files are made by 3 columns and N lines (the lines depend on another code), and then do the following operation:
C(i)=(data1(i)-data2(i))/(data2(i)-data3(i))
When i
represents the data "i"
of the second column of each file.
I know how to read the files but I don't know how to manipulate the data from each file.
Any thoughts?