/*************************************************************************************************************************************/
/* */
/* F O N C T I O N ' F A M M A ' D ' U N N O M B R E C O M P L E X E : */
/* */
/* */
/* Author of '$xcg/famma.01$K' : */
/* */
/* Jean-Francois COLONNA (LACTAMME, 20160719135431). */
/* */
/*************************************************************************************************************************************/
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* 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 PARTIE_REELLE_____DE_NOMBRE \
FU
#define PARTIE_IMAGINAIRE_DE_NOMBRE \
FZERO
/* Nombre complexe dont on veut la factorielle generalisee... */
/* */
/* On n'oubliera pas que le nombe {0,0} est un pole de la fonction 'famma(...)' qui remvoie */
/* donc alors la valeur {F_PETIT_INFINI,0} ('v $ximcf/fonction$FON F_PETIT_INFINI'). */
#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"
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* F O N C T I O N ' F A M M A ' D ' U N N O M B R E C O M P L E X E : */
/* */
/*************************************************************************************************************************************/
BCommande(nombre_d_arguments,arguments)
/*-----------------------------------------------------------------------------------------------------------------------------------*/
Bblock
DEFV(complexe,nombre);
DEFV(complexe,famma_de_nombre);
/* Nombre complexe dont on veut la factorielle generalisee... */
#include xci/valeurs.03.I"
/*..............................................................................................................................*/
Cinitialisation(nombre,PARTIE_REELLE_____DE_NOMBRE,PARTIE_IMAGINAIRE_DE_NOMBRE);
/* Initialisation du nombre complexe dont on veut la factorielle generalisee... */
EGAL(nombre_de_chiffres_des_editions_flottantes,ABSO(LO1X(fFCfamma_sommation_Euler_MacLaurin_____precision_du_calcul)));
/* Afin de rendre a priori compatible la precision des valeurs editees avec celle du calcul. */
GET_ARGUMENTS_(nombre_d_arguments
,BLOC(GET_ARGUMENT_F("partie_reelle=""r=""x=",Reelle(nombre));
GET_ARGUMENT_F("partie_imaginaire=""i=""y=",Imaginaire(nombre));
GET_ARGUMENT_F("precision=""p=",fFCfamma_sommation_Euler_MacLaurin_____precision_du_calcul);
/* On n'oubliera pas l'option : */
/* */
/* ChiffresFlot=... */
/* */
/* qui permet de definir la precision des sorties... */
PROCESS_ARGUMENTS_DE_PARAMETRAGE_DE_LA_GENERATION_DE_SUITE_DE_VALEURS_1;
PROCESS_ARGUMENTS_DE_PARAMETRAGE_DE_LA_GENERATION_DE_SUITE_DE_VALEURS_2;
)
);
Cegal(famma_de_nombre,fFCfamma_sommation_Euler_MacLaurin(nombre));
EDITION_DE_LA_VALEUR_DE_L_OPERATEUR(Imaginaire(famma_de_nombre));
/* Edition de la factorielle generalisee du nombre... */
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.