/*************************************************************************************************************************************/
/* */
/* E T U D E D E L A S U I T E D E S Y R A C U S E */
/* E N P A R T A N T D E S N O M B R E S P R E M I E R S : */
/* */
/* */
/* Nota : */
/* */
/* Cette commande est tres inspiree de */
/* 'v $ximf/nombres$FON IFsuite_de_Syracuse'. */
/* */
/* */
/* Author of '$xrk/Syracuse.12$K' : */
/* */
/* Jean-Francois COLONNA (LACTAMME, 20130115144037). */
/* */
/*************************************************************************************************************************************/
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* 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 : */
/* */
/*************************************************************************************************************************************/
#include xrk/Syracuse.11.1.I"
/* Introduit sous cette forme le 20130115143143... */
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* M A C R O S U T I L E S : */
/* */
/*************************************************************************************************************************************/
#define PREMIER_NOMBRE_PREMIER \
VERITABLE_PREMIER_NOMBRE_PREMIER \
/* Premier nombre premier a traiter en excluant donc 2 ((introduit ici le 20130112101944). */
#define NOMBRE_DE_NOMBRES_PREMIERS \
COYR(Ymax) \
/* Nombre maximal de nombres premiers que l'on va calculer, mais en fait leur nombre est */ \
/* plus petit que cela car, en effet, la valeur ci-dessus donne plutot le plus grand */ \
/* nombre pair que l'on va decomposer... */
#include xci/valeurs_Goldbach.01.I"
#include xci/valeurs_Goldbach.02.I"
#include xrk/Syracuse.11.2.I"
/* Introduit sous cette forme le 20130115143143... */
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* E T U D E D E L A S U I T E D E S Y R A C U S E */
/* E N P A R T A N T D E S N O M B R E S P R E M I E R S : */
/* */
/*************************************************************************************************************************************/
BCommande(nombre_d_arguments,arguments)
/*-----------------------------------------------------------------------------------------------------------------------------------*/
Bblock
DEFV(CHAR,INIC(POINTERc(nom_imageR),NOM_PIPE));
#include xrk/Syracuse.11.3.I"
/* Introduit sous cette forme le 20130115143143... */
/*..............................................................................................................................*/
GET_ARGUMENTSi(nombre_d_arguments
,BLOC(GET_ARGUMENT_C("imageR=""R=",nom_imageR);
GET_ARGUMENT_I("nombre_maximal_iterations=""iterations=",nombre_maximal_d_iterations);
GET_ARGUMENT_I("valeur_d_arret=""arret=",valeur_d_arret);
GET_ARGUMENT_I("rang_initial=""rang=",rang_initial_d_apparition_de_la_valeur_d_arret);
GET_ARGUMENT_I("diviseur=""div=",diviseur);
GET_ARGUMENT_I("alpha=""a=",alpha___);
GET_ARGUMENT_I("beta=""b=",beta____);
GET_ARGUMENT_L("visualiser_rang=""vr=",visualiser_a_l_aide_du_rang_dans_la_suite);
GET_ARGUMENT_N("visualiser_U0=""v0=",visualiser_a_l_aide_du_rang_dans_la_suite);
/* Arguments introduits le 20130115101940... */
GET_ARGUMENT_L("visualiser_parite=""vp=",visualiser_la_parite_des_elements_de_la_suite);
GET_ARGUMENT_P("pariteP=""pp=",niveau_de_la_parite___paire);
GET_ARGUMENT_P("pariteI=""pi=",niveau_de_la_parite_impaire);
/* Arguments introduits le 20190418110534... */
GET_ARGUMENT_L("editer=""ed=",editer_les_suites);
)
);
CALi(Inoir(ImageR));
DEBUT_DE_LA_GENERATION_DE_LA_LISTE_DES_NOMBRES_PREMIERS;
begin_ligne
Bblock
CALCUL_D_UNE_SUITE_DE_SYRACUSE(IdTb1(liste_des_nombres_premiers
,CONX(COXR(X),COXR(Xmin),INDEX_DU_PREMIER_NOMBRE_PREMIER)
,NOMBRE_DE_NOMBRES_PREMIERS
)
);
/* Calcul de U(n)... */
Eblock
end_ligne
FIN_DE_LA_GENERATION_DE_LA_LISTE_DES_NOMBRES_PREMIERS;
CALi(Iupdate_image(nom_imageR,ImageR));
RETU_Commande;
Eblock
ECommande
Copyright © Jean-François COLONNA, 2019-2025.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / École polytechnique, Institut Polytechnique de Paris, 2019-2025.