func5 Function

public function func5(x) result(f)

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in), dimension(:) :: x

Return Value real(kind=rk)


Source Code

   function func5(x) result(f)
      real(rk), dimension(:), intent(in) :: x
      real(rk)                           :: f

      f = x(1)**2 + 0.5_rk*x(2)**2

   end function func5