Mathc complexes/a147
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(" sinh(");
p_Z(a,S3,P4,S3,P4);
printf(") = ");
p_Z(sinh_Z(a),S3,P6,S3,P6);
printf("\n\n\n");
printf(" cosh(");
p_Z(a,S3,P4,S3,P4);
printf(") = ");
p_Z(cosh_Z(a),S3,P6,S3,P6);
printf("\n\n\n");
stop();
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Exemple de sortie écran :
sinh(-0.1250+0.5460i ) = -0.107104+0.523335i
cosh(-0.1250+0.5460i ) = +0.861294-0.065078i
Press return to continue.
# --------------------------------
# Copy/Past into the octave window
#
x = sinh(-0.1250+0.5460i )
y = cosh(-0.1250+0.5460i )
#