Question: I need to finish this code in Fortran, the code calculates the inverse matrix of a 4 x 4 matrix that reads from the data.dat
I need to finish this code in Fortran, the code calculates the inverse matrix of a x matrix that reads from the data.dat file, this can be anything. I need to implement the two subroutines that are there triangulars and triangulari one is to triangulate superiorly and the other inferiorly. And finally check that the code is correct by compiling it
That is it is the base code, I don't know if it is necessary to add something else for it to work. program inversecalculation
real :: a::b::c::
openunitfile'data.dat'
n
do in
readaij jn
enddo
close
a:nn:n
do in
aini
enddo
call triangularsa:n:nn
call triangularia:n:nn
do in
ai:ai:aii
enddo
do in
writeaij jn
enddo
write
do in
writeaij jnn
enddo
openunitfile'data.dat'
do in
readbij jn
enddo
write
do in
writebij jn
enddo
close
Verification of the inverse calculation procedure
do in
do jn
cijdotproductain:nb:j
enddo
enddo
write
do in
writecij jn
enddo
end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
