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
FUNCTION PolyZ(x0,x,F,N)INTEGER,INTENT(IN)::N! order of the polynomialCOMPLEX(KIND=8),INTENT(IN)::x0,x(N),f(N)! x, y values of the polynomialCOMPLEX(KIND=8)::PolyZCOMPLEX(KIND=8)::fT(N),h(N)! Initialize arraysh=x-x0fT=f! Recursion for solutionIF(N>=2)THEN DO i=1,N-1DO j=1,N-ifT(j)=(h(j+i)*fT(j)-h(j)*fT(j+1))/(h(j+i)-h(j))END DO END DO ENDIFPolyZ=fT(1)END FUNCTION PolyZ