« Introduction au langage C/Matrices complexes 2 » : différence entre les versions
Contenu supprimé Contenu ajouté
m Robot : Remplacement de texte automatisé (-\bE(tud) +É\1) |
m Robot : Remplacement de texte automatisé (- n'est pas + n’est pas , - Aujourd'hui + Aujourd’hui , - d'euros + d’euros , - d'agir + d’agir , - l'apparence + l’apparence ); changements de type cosmétique |
||
Ligne 23 :
<source lang="c">
/* ------------------------------ */
/* Save as : c01.c
/* ------------------------------ */
#include
#include
#include
#include
#include
#include
/* ------------------------------ */
#define C0
#define C1
#define C2
#define C3
#define C4
#define C5
#define R0
#define R1
#define R2
#define R3
#define R4
#define R5
#define RC0
#define RC1
#define RC2
#define RC3
#define RC4
#define OF
#define R_SIZE
#define C_SIZE
#define C_SIZE_A
#define ERROR_E
#define FIRST
#define FILENAME
#ifndef PI
#define PI
#endif
/* ------------------------------ */
double **i_mZ(
int
int
)
{
double **A;
int
int
int
if(r<1||c<1)
Ligne 116 :
for(i=1; i<ar; i++) A[i] = A[0]+i*ac;
/*
A[R_SIZE][OF] = ar;/* A[R_SIZE][OF] = A[0][0] */
A[C_SIZE][OF] = ac;/* A[C_SIZE][OF] = A[1][0] */
/*
for(r=2; r<A[R_SIZE][OF]; r++) A[r][0] = 0.;
for(c=1; c<A[C_SIZE][OF]; c++) A[0][c] = 0.;
Ligne 159 :
/* ------------------------------ */
double **i_mZ(
int
int
)
{
double **A;
int
int
int
if(r<R1||c<C1)
Ligne 230 :
for(i=1; i<ar; i++) A[i] = A[0]+i*ac;
/*
A
Ligne 239 :
123456 123456 123456 123456 123456
A[0] A[1] A[2] A[3]
*/
/*
A[R_SIZE][OF] = ar;/* A[R_SIZE][OF] = A[0][0] */
A[C_SIZE][OF] = ac;/* A[C_SIZE][OF] = A[1][0] */
/*
for(r=2; r<A[R_SIZE][OF]; r++) A[r][0] = 0.;
for(c=1; c<A[C_SIZE][OF]; c++) A[0][c] = 0.;
Ligne 256 :
Important :
* Vous
* Dans la librairie je mets à zéro tous les éléments de la matrice avec la fonction m_0_mZ(A);
|