• [^] # Re: Sérieusement ?

    Posté par (site web personnel, Mastodon) . En réponse au journal Encore des nouvelles de Fortran. Évalué à 8.

    Oui, personnellement, ça ne me manquait pas !

    J'ai trouvé l'argumentaire de la décision (16-10-2018) :
    https://j3-fortran.org/doc/year/18/18-272.txt

    Many, if not most, Fortran implementations support these degree-argument
    versions as extensions, and they are widely used. In the spirit of
    standardizing existing practice,
    we should add the following generic
    intrinsic functions to the standard: ACOSD, ASIND, ATAN2D...
    [...]
    This provides a portable mechanism for programs that have
    mathematical formulas that need the actual degrees, and don't
    want the overhead of converting to/from radians.

    Plus étonnant, il y a même dans cette norme l'apparition de fonctions trigonométriques où les angles sont exprimés en multiples de \pi : ACOSPI, ASINPI, ATANPI, ATAN2PI, COSPI, SINPI, TANPI. Le message correspondant est intitulé "IEEE Circular trigonometric functions":
    https://j3-fortran.org/doc/year/19/19-204.txt

    On les retrouve dans un certain nombre de librairies mathématiques, par exemple :
    https://docs.oracle.com/cd/E19059-01/stud.10/819-0499/ncg_lib.html

    Ça doit répondre à des disciplines où exprimer ainsi les angles est une pratique courante.