#######################################################################################################################################
# #
# G E N E R A T I O N D ' U N A U T O M A T E C E L L U L A I R E M O N O D I M E N S I O N N E L #
# Q U A S I - C O N T I N U E T " R O T A T I F " : #
# #
# #
# Author of '$xiird/.AC1C.A.11.$U' : #
# #
# Jean-Francois Colonna (LACTAMME, 20081202142943). #
# #
#######################################################################################################################################
$Z SformatI
$Z XYmaxNe $NOIR $BLANC $NOIR $BLANC
$Z # Dimensionnement de l'album a generer en {X,Y}. #
$c #include <stdio.h>
$c
$c extern double cos();
$c extern double sin();
$c
$c #define N0 Premiere
$c #define N Derniere
$c
$c #define THETA0 0.0
$c #define THETAN 1.570796326794897/32
$c
$c int main()
$c {
$c int n;
$c
$c for (n=N0 ; n<=N ; n++)
$c {
$c double A=0;
$c double B=-1;
$c
$c double theta=((THETAN*(n-N0))+(THETA0*(N-n)))/(N-N0);
$c
$c printf("$xci/lineaire$X
$c A=%f
$c B=%f
$c C=0
$c matrice=VRAI
$c rotations=VRAI ROTATION_OZ=%f
$c standard=FAUX
$c $formatI |
$c $xci/acces$X
$c standard=FAUX zero=FAUX
$c R=$_____FAutoCellB.%04d
$c $formatI\n"
$c ,A
$c ,B
$c ,theta
$c ,n
$c );
$c /* Generation de l'automate cellulaire "rotatif" "rotatif"... */
$c }
$c }
$Z RformatI