Installer ce fichier dans votre répertoire de travail.
![]() |
wzp.h ' |
---|
/* ------------------------------------ */
/* Save as : wzp.h */
/* ------------------------------------ */
void p_Z(
nb_Z z,
int er,
int dr,
int ei,
int di)
{
printf("%+*.*f%+*.*fi ",er,dr,z.r,
ei,di,z.i);
}
/* ------------------------------------ */
void pE_Z(
nb_Z z,
int er,
int dr,
int ei,
int di)
{
printf("%+*.*e%+*.*ei ",er,dr,z.r,
ei,di,z.i);
}
/* ------------------------------------ */
void pre_Z(
nb_Z z,
int e,
int d
)
{
printf("%+*.*f",e,d,z.r);
}
/* ------------------------------------ */
void pim_Z(
nb_Z z,
int e,
int d)
{
printf("%+*.*f",e,d,z.i);
}
/* ------------------------------------ */
/* ------------------------------------ */
La fonction p_Z(); affiche un nombre complexe.
...
Cet article est issu de Wikibooks. Le texte est sous licence Creative Commons - Attribution - Partage dans les Mêmes. Des conditions supplémentaires peuvent s'appliquer aux fichiers multimédias.