Skip to content

Commit 003e3c6

Browse files
authored
Update ch05-01-subroutine.md
1 parent 5835661 commit 003e3c6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ch05-01-subroutine.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ program main
4545
end do
4646
!调用子程序
4747
call print_matrix(a)
48-
b=0.0
48+
b=1.5
4949
call axpy(2.0,a,b)
5050
write(*,*)"--------------------"
5151
call print_matrix(b)
@@ -58,10 +58,10 @@ $ fpm run
5858
4.00000000 5.00000000 6.00000000 7.00000000
5959
5.00000000 6.00000000 7.00000000 8.00000000
6060
--------------------
61-
4.00000000 6.00000000 8.00000000 10.0000000
62-
6.00000000 8.00000000 10.0000000 12.0000000
63-
8.00000000 10.0000000 12.0000000 14.0000000
64-
10.0000000 12.0000000 14.0000000 16.0000000
61+
5.50000000 7.50000000 9.50000000 11.5000000
62+
7.50000000 9.50000000 11.5000000 13.5000000
63+
9.50000000 11.5000000 13.5000000 15.5000000
64+
11.5000000 13.5000000 15.5000000 17.5000000
6565
```
6666

6767

0 commit comments

Comments
 (0)