Mathc initiation/Fichiers h : c77bz
Apparence
Installer et compiler ce fichier dans votre répertoire de travail.
c00a.c |
---|
/* ------------------------------------ */
/* Save as : c00a.c */
/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
int main(void)
{
nb_Z a;
clrscrn();
a = i_Z(-.125, .546);
printf(" sin(");
p_Z(a,S3,P4,S3,P4);
printf(") = ");
p_Z(sin_Z(a),S3,P6,S3,P6);
printf("\n\n\n");
printf(" cos(");
p_Z(a,S3,P4,S3,P4);
printf(") = ");
p_Z(cos_Z(a),S3,P6,S3,P6);
printf("\n\n\n");
stop();
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Exemple de sortie écran :
sin(-0.1250+0.5460i ) = -0.143725+0.569061i
cos(-0.1250+0.5460i ) = +1.143804+0.071505i
Press return to continue.
# --------------------------------
# Copy/Past into the octave window
#
x = sin(-0.1250+0.5460i )
y = cos(-0.1250+0.5460i )
#