Mathc complexes/h05c
Apparence
Installer ce fichier dans votre répertoire de travail.
wpoctave.h |
---|
/* ------------------------------------ */
/* Save as : wpoctave.h */
/* ------------------------------------ */
void p_Octave_mZ(
double **A,
char name[],
int Pr,
int Pi
)
{
int r;
int c;
printf(" %s=[\n",name);
for(r=R1; r<A[R_SIZE][C0]; r++)
{
for(c=C1; c<A[C_SIZE][C0]; c+=C2)
printf("%+.*f%+.*f*i,",Pr,A[r][c], Pi,A[r][c+C1]);
if((r+1)<A[R_SIZE][C0]) printf("\b;\n");
else printf("\b]\n\n");
}
}
/* ------------------------------------ */
void pE_Octave_mZ(
double **A,
char name[],
int Pr,
int Pi
)
{
int r;
int c;
printf(" %s=[\n",name);
for(r=R1; r<A[R_SIZE][C0]; r++)
{
for(c=C1; c<A[C_SIZE][C0]; c+=C2)
printf("%+.*e%+.*e*i,",Pr,A[r][c], Pi,A[r][c+C1]);
if((r+1)<A[R_SIZE][C0]) printf("\b;\n");
else printf("\b]\n\n");
}
}
/* ------------------------------------ */
void pAi_Octave_mZ(
double **A,
char name[],
int i,
int Pr,
int Pi
)
{
int r;
int c;
printf(" %s%d=[\n",name,i);
for(r=R1; r<A[R_SIZE][C0]; r++)
{
for(c=C1; c<A[C_SIZE][C0]; c+=C2)
printf("%+.*f%+.*f*i,",Pr,A[r][c], Pi,A[r][c+C1]);
if((r+1)<A[R_SIZE][C0]) printf("\b;\n");
else printf("\b]\n\n");
}
}
/* ------------------------------------ */
/* ------------------------------------ */
/* ------------------------------------ */
/* ------------------------------------ */
void p_Octave_mRZ(
double **A,
char name[],
int Pr
)
{
int r;
int c;
printf(" %s=[\n",name);
for(r=R1; r<A[R_SIZE][C0]; r++)
{
for(c=C1; c<A[C_SIZE][C0]; c+=C2)
printf("%+.*f,",Pr,A[r][c]);
if((r+1)<A[R_SIZE][C0]) printf("\b;\n");
else printf("\b]\n\n");
}
}
/* ------------------------------------ */
void pE_Octave_mRZ(
double **A,
char name[],
int Pr
)
{
int r;
int c;
printf(" %s=[\n",name);
for(r=R1; r<A[R_SIZE][C0]; r++)
{
for(c=C1; c<A[C_SIZE][C0]; c+=C2)
printf("%+.*e,",Pr,A[r][c]);
if((r+1)<A[R_SIZE][C0]) printf("\b;\n");
else printf("\b]\n\n");
}
}
/* ------------------------------------ */
/* ------------------------------------ */
/* ------------------------------------ */
/* ------------------------------------ */
Déclaration des fichiers h.