Blame view

fvn_test/test_muller.f90 453 Bytes
27d3b84d6   daniau   git-svn-id: https...
1
  program muller
2919a9e2d   daniau   git-svn-id: https...
2
  use fvn_misc
27d3b84d6   daniau   git-svn-id: https...
3
4
  implicit none
  integer :: i,info
f6bacaf83   cwaterkeyn   ChW 11/09: ANSI c...
5
  complex(kind=dp_kind),dimension(10) :: roots
27d3b84d6   daniau   git-svn-id: https...
6
  integer,dimension(10) :: infer
f6bacaf83   cwaterkeyn   ChW 11/09: ANSI c...
7
  complex(kind=dp_kind), external :: f
27d3b84d6   daniau   git-svn-id: https...
8

f6bacaf83   cwaterkeyn   ChW 11/09: ANSI c...
9
  real(kind=dp_kind) :: eps1
27d3b84d6   daniau   git-svn-id: https...
10
11
12
13
14
15
16
17
18
  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)
8d883e8a1   wdaniau   Integration of ki...
19
  use fvn_common
f6bacaf83   cwaterkeyn   ChW 11/09: ANSI c...
20
     complex(kind=dp_kind) :: x,f
27d3b84d6   daniau   git-svn-id: https...
21
22
     f=x**10-1
  end function