RosettaCodeData/Task/Numerical-integration/Fortran/numerical-integration-4.f

14 lines
180 B
FortranFixed
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
module FunctionHolder
implicit none
contains
pure function afun(x)
real :: afun
real, intent(in) :: x
afun = x**2
end function afun
end module FunctionHolder