Hi,
I am looking for a program in Fortran 77/90/95 to calculate integration from a data set.
I have a data set like
x1[1] x2[1] F(x1,x2)[1]
x1[2] x2[2] F(x1,x2)[2]
..... ..... ...........
..... ..... ...........
x1[n] x2[n] F(x1,x2)[n]
I need a numerical integration of the relation
F(x1) = ln ?e?F(x1,x2)dx2
so i can get array like
x1[1] F(x1)[1]
x1[2] F(x1)[2]
..... .....
..... .....
x1[n] F(x1)[n]
here is a simple Fortran program which can read the data file
dimension x1(3000,3000),x2(3000,3000),x1x2(3000,3000)
real*8 x1,x2,x1x2,sum1,dx2
integer i,j
do i=1,100
do j=1,100
read(10,*)x1(i,j),y1(i,j),x1y1(i,j)
enddo
enddo
stop
end
I am looking for a program in Fortran 77/90/95 to calculate integration from a data set.
I have a data set like
x1[1] x2[1] F(x1,x2)[1]
x1[2] x2[2] F(x1,x2)[2]
..... ..... ...........
..... ..... ...........
x1[n] x2[n] F(x1,x2)[n]
I need a numerical integration of the relation
F(x1) = ln ?e?F(x1,x2)dx2
so i can get array like
x1[1] F(x1)[1]
x1[2] F(x1)[2]
..... .....
..... .....
x1[n] F(x1)[n]
here is a simple Fortran program which can read the data file
dimension x1(3000,3000),x2(3000,3000),x1x2(3000,3000)
real*8 x1,x2,x1x2,sum1,dx2
integer i,j
do i=1,100
do j=1,100
read(10,*)x1(i,j),y1(i,j),x1y1(i,j)
enddo
enddo
stop
end