看板 Fortran 關於我們 聯絡資訊
請問一下 我參考彭國倫寫的"Fortran 95",在594頁寫的IMSL矩陣函式 想要使用計算determinant的函式DEF 用的是 Compaq Visual Fortran 專業版 program determinant use IMSL implicit none integer::I(3,3)=(/1,2,3,4,5,6,7,8,9/) write(*,*)DEF(I) end 可是會跑出錯誤 C:\FORTRAN\a.f90(7) : Error: This name does not have a type, and must have an explicit type. [DEF] write(*,*)DEF(I) ----------^ Error executing df.exe. 有好心人可以替我解答一下這是怎麼回事嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.116.201.105
sanYY:已解決,矩陣形態要用real,而且書上印錯,應該是DET才對 09/29 17:49