Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Source Code
COMPLEX FUNCTION PolyC(x0,x,f,N)INTEGER,INTENT(IN)::N! order of the polynomialCOMPLEX,INTENT(IN)::x0,x(N),f(N)! x, y values of the polynomialCOMPLEX::ft(N),h(N)! Initialize arraysh=x-x0ft=f! Recursion for solutionIF(N>=2)THEN DO i=1,N-1DO j=1,N-I! ft( J ) = ( h( J+I ) * ft( J ) - h( J ) * ft( J+1 ) ) / &! ( h( J+I ) - h( J ) )ft(J)=ft(J)+h(J)*(ft(J)-ft(J+1))/&&(h(J+I)-h(J))END DO END DO ENDIFPolyC=ft(1)END FUNCTION PolyC