/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        T E S T   D E   L A   N O T I O N   D E   " P S E U D O - A G E "   P O U R   ' v $xcg/fichier_etat$K '  :                 */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Author of '$xtc/pseudo_ag.01$c' :                                                                                          */
/*                                                                                                                                   */
/*                    Jean-Francois Colonna (LACTAMME, AAAAMMJJhhmmss).                                                              */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

#include  <stdio.h>

#define   AGE_0       1
#define   AGE_N       101
#define   AGE_p       20

#define   TAILLE_0    1
#define   TAILLE_N    2000001
#define   TAILLE_p    400000

#define   DIVISEUR    50000000000

main()
     {
     double    age,taille;

     for       (age=AGE_0 ; age<=AGE_N ; age=age+AGE_p)
               {
               for       (taille=TAILLE_0 ; taille<=TAILLE_N ; taille=taille+TAILLE_p)
                         {
                         double g=(taille/DIVISEUR)*(age*age) + 1;
                         printf("\n taille=%08d   age : %04d --> %04d",(int)(taille),(int)(age),(int)(g*age));
                         }

               printf("\n");
               }
     }



Copyright © Jean-François Colonna, 2023-2023.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / École polytechnique, Institut Polytechnique de Paris, 2023-2023.