/*************************************************************************************************************************************/ /* */ /* T E S T D E S P O L Y N O M E S D E L A G U E R R E : */ /* */ /* */ /* Author of '$xtKg/Laguerre.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/Laguerre.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,p,k,x) \ Bblock \ CAL2(Prin4("%-40s : Fonction(P=%d,K=%d)=%#+14.8f\n" \ ,titre \ ,PINTE(p),PINTE(k) \ ,polynome_de_Laguerre_p_k(p,k,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 A G U E R 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 Laguerre (+1)" ,ORDRE0,ORDRE0,x3 ); PRINT("Polynomes de Laguerre (+1)" ,ORDRE0,ORDRE1,x3 ); PRINT("Polynomes de Laguerre (+2)" ,ORDRE0,ORDRE2,x3 ); PRINT("Polynomes de Laguerre (+6)" ,ORDRE0,ORDRE3,x3 ); PRINT("Polynomes de Laguerre (-2)" ,ORDRE1,ORDRE0,x3 ); PRINT("Polynomes de Laguerre (-1)" ,ORDRE2,ORDRE0,x3 ); PRINT("Polynomes de Laguerre (+6)" ,ORDRE3,ORDRE0,x3 ); PRINT("Polynomes de Laguerre" ,ORDRE1,ORDRE1,x3 ); PRINT("Polynomes de Laguerre" ,ORDRE2,ORDRE1,x3 ); PRINT("Polynomes de Laguerre" ,ORDRE1,ORDRE2,x3 ); CAL2(Prin0("\n")); RETU_Commande; Eblock ECommande