Mathc initiation/Fichiers h : wzr


Sommaire



Installer ce fichier dans votre répertoire de travail.

wzr.h
/* ------------------------------------ */
/*  Save as :   wzr.h                   */
/* ------------------------------------ */
/* ------------------------------------ */
nb_Z r_Z(
int maxn)
{
nb_Z z;

    z.r  = r_I (maxn);
    z.i  = r_I (maxn);

return(z);
}
/* ------------------------------------ */
/* ------------------------------------ 
    positive and negative floating point numbers 
 
    E=  1E-0  -> 1234
    E = 1E-1  ->  123.4
    E = 1E-2  ->   12.34
    E = 1E-3  ->    1.234
   ------------------------------------ */
nb_Z rE_Z(
int      maxn,
double   E
)
{
nb_Z z;

    z.r  = r_I (maxn)*E;
    z.i  = r_I (maxn)*E;

return(z);
}
/* ------------------------------------ */
/* ------------------------------------ */

La fonction r_Z(); créé et donne un complexe avec des valeurs aléatoires.