/*************************************************************************************************************************************/ /* */ /* T E S T D E S P O L Y N O M E S D E L E G E N D R E : */ /* */ /* */ /* Author of '$xtKg/Legendre.11$K' : */ /* */ /* Jean-Francois COLONNA (LACTAMME, 1993??????????). */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* 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 : */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* F I C H I E R S D ' I N C L U D E S : */ /* */ /*************************************************************************************************************************************/ #include INCLUDES_BASE #include xtKg/derivees.21.I" #include xrq/Legendre.31.I" /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* P A R A M E T R E S : */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* M A C R O S U T I L E S : */ /* */ /*************************************************************************************************************************************/ #define PRINT(titre,l,m,x) \ Bblock \ CAL2(Prin4("%-40s : Fonction(L=%d,M=%d)=%#+14.8f\n" \ ,titre \ ,PINTE(l),PINTE(m) \ ,polynome_de_Legendre_l_m(l,m,x) \ ) \ ); \ /* On notera l'utilisation de "%f" (et non pas de "%g" comme a l'habitude) a cause d'un bug */ \ /* explicite dans 'v $Dbugs/SGIND424$D/IRIX$D/CC$D/printf.01$c'. */ \ Eblock /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* T E S T D E S P O L Y N O M E S D E L E G E N D R E : */ /* */ /*************************************************************************************************************************************/ BCommande(nombre_d_arguments,arguments) /*-----------------------------------------------------------------------------------------------------------------------------------*/ Bblock DEFV(Float,INIT(x1,FLOT(UN))); DEFV(Float,INIT(d_x1,d_FVARIABLES_DE_DERIVATION)); DEFV(Float,INIT(x2,FLOT(DEUX))); DEFV(Float,INIT(d_x2,d_FVARIABLES_DE_DERIVATION)); DEFV(Float,INIT(x3,FLOT(TROIS))); DEFV(Float,INIT(d_x3,d_FVARIABLES_DE_DERIVATION)); DEFV(Float,INIT(x4,FLOT(QUATRE))); DEFV(Float,INIT(d_x4,d_FVARIABLES_DE_DERIVATION)); /*..............................................................................................................................*/ GET_ARGUMENTS_(nombre_d_arguments ,BLOC(VIDE;) ); PRINT("Polynomes de Legendre (+3)" ,ORDRE1,ORDRE0,x3 ); PRINT("Polynomes de Legendre (+13)" ,ORDRE2,ORDRE0,x3 ); PRINT("Polynomes de Legendre (+63)" ,ORDRE3,ORDRE0,x3 ); CAL2(Prin0("\n")); RETU_Commande; Eblock ECommande