/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        N O M B R E   D E   P E R M U T A T I O N S   D E   ' n '   E L E M E N T S  :                                             */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Author of '$xcg/PERn.01$K' :                                                                                               */
/*                                                                                                                                   */
/*                    Jean-Francois COLONNA (LACTAMME, 20090426122738).                                                              */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        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

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        P A R A M E T R E S  :                                                                                                     */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
#define   NOMBRE_n                                                                                                                      \
                    UN                                                                                                                  \
                                        /* Le nombre entier 'n'.                                                                     */

#define   VALEURS_SIGNEES                                                                                                               \
                    ""                                                                                                                  \
                                        /* Definition de la presence d'un signe ("+") pour les valeurs editees ou son absence ("").  */ \
                                        /*                                                                                           */ \
                                        /* Le 20081204104317 le '#TestADef' incomprehensible a ete remplace par un '#define'. Malgre */ \
                                        /* tout, la question se pose de savoir a quoi cela sert-il de forcer ici 'VALEURS_SIGNEES' ? */
#include  xcg/ARIT.01.I"
#include  xci/valeurs.01.I"

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        M A C R O S   U T I L E S  :                                                                                               */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
#include  xci/valeurs.02.I"

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        N O M B R E   D E   P E R M U T A T I O N S   D E   ' n '   E L E M E N T S  :                                             */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
BCommande(nombre_d_arguments,arguments)
/*-----------------------------------------------------------------------------------------------------------------------------------*/
     Bblock
     DEFV(Int,INIT(nombre_n,NOMBRE_n));
                                        /* Le nombre entier 'n'.                                                                     */

#include  xci/valeurs.03.I"
     /*..............................................................................................................................*/
     GET_ARGUMENTS_(nombre_d_arguments
                   ,BLOC(GET_ARGUMENT_I("nombre_n=""n=",nombre_n);

                         GET_ARGUMENT_C("signe=",valeurs_signees);

                         GET_ARGUMENT_L("LF=""K_LF=",ajouter_un_K_LF_en_fin_de_format_d_edition);
                         )
                    );

     CAL2(Prin1(Cara(chain_Aconcaten3(INTRODUCTION_FORMAT,valeurs_signees,"d"))
               ,PERn(nombre_n)
                )
          );
                                        /* Edition du nombre de PERmutations de 'n' objets ...                                       */

     Test(IL_FAUT(ajouter_un_K_LF_en_fin_de_format_d_edition))
          Bblock
          CAL2(Prin0("\n"));
          Eblock
     ATes
          Bblock
          Eblock
     ETes

     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.