webpage icon indicating copy to clipboard operation
webpage copied to clipboard

Provide shorter examples for intrinsic procedures

Open Beliavsky opened this issue 3 years ago • 2 comments

Some example programs for the Fortran intrinsics, for example the one for ubound, provide a lot of information but are also a bit complicated. I suggest that a short example for an intrinsic be provided before a longer one. At Fortran Discourse I gave this code for ubound:

program main ! output in comments
implicit none
real :: x(4),y(-4:3),z(5,-3:2,7)
print*,lbound(x),ubound(x)     ! 1 4
print*,lbound(y),ubound(y)     ! -4 3
print*,lbound(z)               ! 1 -3 1
print*,ubound(z)               ! 5 2 7
print*,lbound(z,2),ubound(z,2) ! -3 2
end program main

Beliavsky avatar Apr 20 '22 14:04 Beliavsky

Hello, I would like to work on this issue. Could you please assign it to me?

Moksh45 avatar Jan 22 '23 11:01 Moksh45

And Could you please provide me with additional information regarding this issue?

Moksh45 avatar Jan 22 '23 18:01 Moksh45