/*************************************************************************************************************************************/
/* */
/* V E R I F I C A T I O N D U T H E O R E M E D E P Y T H A G O R E : */
/* */
/* */
/* Author of '$xcg/Pythagore.01$K' : */
/* */
/* Jean-Francois COLONNA (LACTAMME, 20061114091738). */
/* */
/*************************************************************************************************************************************/
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* 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 : */
/* */
/*************************************************************************************************************************************/
#define PRAGMA_CPP_____AUTORISER_LE_GooF
/* Ceci a ete introduit le 20040422141544. */
#define PRAGMA_CPP_____SI_LE_GooF_EST_ACTIVABLE_ALORS_FAIRE_DE_L_ARITHMETIQUE_ETENDUE_DES_NOMBRES_FLOTTANTS
/* Ceci a ete introduit le 20050308095701. */
/* */
/* Le 20061018122227, je note que cette option est devenue redondante avec la nouvelle */
/* possibilite 'v $xig/fonct$vv$FON 20061018104520'. Malgre tout je la conserve a cette */
/* date... */
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* F I C H I E R S D ' I N C L U D E S : */
/* */
/*************************************************************************************************************************************/
#include INCLUDES_MINI
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* P A R A M E T R E S : */
/* */
/*************************************************************************************************************************************/
#define NOMBRE_1 \
FLOT(TROIS)
#define NOMBRE_2 \
FLOT(QUATRE)
#define NOMBRE_3 \
FLOT(CINQ)
/* Les trois nombres flottants pour lesquels on va verifer le theoreme de pythagore. */
#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"
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* V E R I F I C A T I O N D U T H E O R E M E D E P Y T H A G O R E : */
/* */
/*************************************************************************************************************************************/
BCommande(nombre_d_arguments,arguments)
/*-----------------------------------------------------------------------------------------------------------------------------------*/
Bblock
DEFV(Float,INIT(nombre_1,NOMBRE_1));
DEFV(Float,INIT(nombre_2,NOMBRE_2));
DEFV(Float,INIT(nombre_3,NOMBRE_3));
/* Les trois nombres flottants pour lesquels on va verifer le theoreme de pythagore. */
#include xci/valeurs.03.I"
/*..............................................................................................................................*/
GET_ARGUMENTS_(nombre_d_arguments
,BLOC(GET_ARGUMENT_F("x=""nombre_1=""n1=""c1=""a=""CoteAngleDroit1=",nombre_1);
GET_ARGUMENT_F("y=""nombre_2=""n2=""c2=""b=""CoteAngleDroit2=",nombre_2);
GET_ARGUMENT_F("z=""nombre_3=""n3=""h=""c=""Hypotenuse=",nombre_3);
PROCESS_ARGUMENTS_DE_PARAMETRAGE_DE_LA_GENERATION_DE_SUITE_DE_VALEURS_1;
PROCESS_ARGUMENTS_DE_PARAMETRAGE_DE_LA_GENERATION_DE_SUITE_DE_VALEURS_2;
/* Ces deux procedures furent introduites le 20061226185030... */
)
);
EDITION_DE_LA_VALEUR_DE_L_OPERATEUR(USe_GooF(ADD3(NEUT(EXP2(nombre_1))
,NEUT(EXP2(nombre_2))
,NEGA(EXP2(nombre_3))
)
)
);
/* Edition de la verification du theoreme de pythagore sur les trois nombres : */
/* */
/* 2 2 2 */
/* X + Y = Z */
/* */
/* soit : */
/* */
/* 2 2 2 */
/* X + Y - Z = 0 */
/* */
/* La procedure 'USs_GooF(...)' avait ete introduite le 20080105231556 et fut remplacee */
/* par 'USe_GooF(...)' le 20080108132243... */
RETU_Commande;
Eblock
ECommande