0 Replies - 9805 Views - Last Post: 30 December 2012 - 11:38 AM Rate Topic: -----

#1 SimplyD   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 30-December 12

FORTRAN code getting one submatrix and oscillating determinant

Posted 30 December 2012 - 11:38 AM

I am new to FORTRAN (programming generally) and am having problems with my code, which I have been trying to fix for weeks without success.

I am trying to write a code to calculate the determinant of any "n" dimensional matrix using the laplace expansion formula.


My code only calculates the first submatrix i.e for A(1,1) and does not continue the loop for all the A(1,j) i.e elements of the 1st row only.

Furthermore, the value of the determinant calculated keeps oscillating because i was thinking it should give a definite value even if it is wrong.

Below is my code. I have also attached the "data.txt" file.

Attached File  laplace.txt (1.63K)
Number of downloads: 38
Attached File  data.txt (239bytes)
Number of downloads: 27

Is This A Good Question/Topic? 0
  • +

Page 1 of 1