Blame view
fvn_test/test_muller.f90
478 Bytes
27d3b84d6 git-svn-id: https... |
1 |
program muller |
2919a9e2d git-svn-id: https... |
2 |
use fvn_misc |
f6bacaf83 ChW 11/09: ANSI c... |
3 |
use Kind_Definition |
27d3b84d6 git-svn-id: https... |
4 5 |
implicit none integer :: i,info |
f6bacaf83 ChW 11/09: ANSI c... |
6 |
complex(kind=dp_kind),dimension(10) :: roots |
27d3b84d6 git-svn-id: https... |
7 |
integer,dimension(10) :: infer |
f6bacaf83 ChW 11/09: ANSI c... |
8 |
complex(kind=dp_kind), external :: f |
27d3b84d6 git-svn-id: https... |
9 |
|
f6bacaf83 ChW 11/09: ANSI c... |
10 |
real(kind=dp_kind) :: eps1 |
27d3b84d6 git-svn-id: https... |
11 12 13 14 15 16 17 18 19 |
eps1=1.d-10 call fvn_muller(f,1.d-12,1.d-10,0,0,10,roots,200,infer,info) write(*,*) "Error code :",info do i=1,10 write(*,*) roots(i),infer(i) enddo end program function f(x) |
f6bacaf83 ChW 11/09: ANSI c... |
20 21 |
use Kind_Definition complex(kind=dp_kind) :: x,f |
27d3b84d6 git-svn-id: https... |
22 23 |
f=x**10-1 end function |