For the following Fortran code
Program test
integer, parameter :: dp = selected_real_kind(15, 307)
real(dp) :: a, b, c, d, e, f, g, h
real(dp) :: v
v = 0.02
a = dsin(v)
b = dcos(v)
c = dtan(v)
d = dcotan(v)
write (*,*) a, b, c, d
end program
ifort
would work. gfortran
9.3.0 leads to
....text+0x65): undefined reference to `dcotan_'
collect2: error: ld returned 1 exit status
gfortran
11.1.0 would work as well.
From https://gcc.gnu.org/onlinedocs/gfortran/COTAN.html, there is a dcotan
in gfortran.
I tried to search in https://gcc.gnu.org/bugzilla/buglist.cgi?quicksearch=dcotan, cannot find any information. Is there any further information about dcotan
in gfortran
?