/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        G E N E R A T I O N   D E   F A U S S E S   D E C I M A L E S   D E S S I N N A N T   U N   C E R C L E  :                 */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Author of '$xtc/DecimalesCercle.01$c' :                                                                                    */
/*                                                                                                                                   */
/*                    Jean-Francois COLONNA (LACTAMME, 20260616110011).                                                              */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
#include  "INCLUDES.01.I"
#define   ITERATIONS                                                                                                                    \
                    40
#define   _____Rho                                                                                                                      \
                    0.04
#define   DENORMALISE(v)                                                                                                                \
                    (v+_____Rho)/(2*_____Rho)
void      main()
          {
          int       n;
          double    angle=0;
          for       (n=1 ; n<=(ITERATIONS+1) ; n++)
                    {
                    double    xf=_____Rho*cos(angle);
                    double    yf=_____Rho*sin(angle);
                    int       xi;
                    int       yi;
                    int       zi=0;
                    xi=9*DENORMALISE(xf);
                    yi=9*DENORMALISE(yf);
                    printf("%d\n%d\n%d\n",xi,yi,zi);
                    angle = angle + ((2*PI)/((double)ITERATIONS));
                    }
          }



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