/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        T E S T   D E S   F O N C T I O N S   T R I G O N O M E T R I Q U E S   C O M P L E X E S  :                               */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Author of '$xtKg/trigo_C.11$K' :                                                                                           */
/*                                                                                                                                   */
/*                    Jean-Francois COLONNA (LACTAMME, 19990621141406).                                                              */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        I N T E R F A C E   ' listG '  :                                                                                           */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        :Debut_listG:                                                                                                              */
/*        :Fin_listG:                                                                                                                */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        D I R E C T I V E S   S P E C I F I Q U E S   D E   C O M P I L A T I O N  :                                               */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
@define   PRAGMA_CPP_____MODULE_NON_DERIVABLE

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        F I C H I E R S   D ' I N C L U D E S  :                                                                                   */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
#include  INCLUDES_BASE

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        P A R A M E T R E S  :                                                                                                     */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        M A C R O S   U T I L E S  :                                                                                               */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
#define   PRINT(x,y)                                                                                                                    \
                    Bblock                                                                                                              \
                    DEFV(complexe,z);                                                                                                   \
                    DEFV(complexe,cosinus);                                                                                             \
                    DEFV(complexe,sinus);                                                                                               \
                    Cinitialisation(z,x,y);                                                                                             \
                                        /* Calcul de z=x+iy.                                                                         */ \
                    Cegal(cosinus,fFCcosinus_circulaire(z));                                                                            \
                    Cegal(sinus,fFCsinus_circulaire(z));                                                                                \
                                        /* Calcul du sinus et du cosinus...                                                          */ \
                    CAL2(Prin4("cosinus(%+g,%+g)=(%+g,%+g)"                                                                             \
                              ,Reelle(z),Imaginaire(z)                                                                                  \
                              ,Reelle(cosinus),Imaginaire(cosinus)                                                                      \
                               )                                                                                                        \
                         );                                                                                                             \
                    CAL2(Prin4("   sinus(%+g,%+g)=(%+g,%+g)"                                                                            \
                              ,Reelle(z),Imaginaire(z)                                                                                  \
                              ,Reelle(sinus),Imaginaire(sinus)                                                                          \
                               )                                                                                                        \
                         );                                                                                                             \
                    CAL2(Prin0("\n"));                                                                                                  \
                    Eblock

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        T E S T   D E S   F O N C T I O N S   T R I G O N O M E T R I Q U E S   C O M P L E X E S  :                               */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
BCommande(nombre_d_arguments,arguments)
/*-----------------------------------------------------------------------------------------------------------------------------------*/
     Bblock
     /*..............................................................................................................................*/
     GET_ARGUMENTS_(nombre_d_arguments
                   ,BLOC(CONTROLE_DES_COMPATIBILITES_DES_FONCTIONS_DES_NOMBRES_COMPLEXES;
                                        /* Mis sous cette forme le 20240626075016...                                                 */
                         )
                    );

     CAL2(Prin0("\n"));

     PRINT(0.0,0.0);
     PRINT(+1.570796326794897,0.0);
     PRINT(-1.570796326794897,0.0);
     PRINT(+3.141592653589793,0.0);
     PRINT(-3.141592653589793,0.0);

     CAL2(Prin0("\n"));

     RETU_Commande;
     Eblock
ECommande



Copyright © Jean-François COLONNA, 2019-2024.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / École polytechnique, Institut Polytechnique de Paris, 2019-2024.