[Patch, Fortran] PR33197 (F2008) Make ATAN(Y,X) an alias for ATAN2(Y,X)

Tobias Burnus burnus@net-b.de
Sun Jul 26 16:44:00 GMT 2009


A simple patch: F2008 adds a two argument version of ATAN which behaves
exactly like ATAN2 (of F77). While I do not quite understand, why this
is needed, one should still add it for Fortran 2008; that's what the
patch does.

Additionally, I corrected the description of ATAN2 which was wrongly
implying that ATAN2(Y,X) is the same as ATAN(cmplx(X,Y)). (Instead it is
the principal value of  ARG(X+i Y).)

Build and regtested on x86-64-linux.
OK for the trunk?

Tobias

PS: Remaining missing Fortran 2008 math functions are: BESSEL_{J,Y}N
which returns an array of N values - and the L_2 norm ("NORM2" =
sqrt(sum(array**2))).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: atan_2.diff
Type: text/x-patch
Size: 7198 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090726/855be226/attachment.bin>


More information about the Gcc-patches mailing list