« Mathc gnuplot/Présentation de la librairie » : différence entre les versions

Contenu supprimé Contenu ajouté
DannyS712 (discussion | contributions)
m <source> -> <syntaxhighlight> (phab:T237267)
modification mineure
Ligne 202 :
int c;
 
for (r=FIRST;r<A[R_SIZE][OF];r++)
for(c=FIRST;c<A[C_SIZE][OF];c++)
AplsB[r][c]=A[r][c]+B[r][c];
 
return(AplsB);
}
/* ------------------------------------ */
Ligne 216 ⟶ 217 :
int i,j,k;
 
for (k=FIRST; k<A[R_SIZE][OF];k++)
for (j=FIRST; j<B[C_SIZE][OF];j++)
for(i=FIRST,AB[k][j]=0;i<A[C_SIZE][OF];i++)
AB[k][j]+=A[k][i]*B[i][j];
 
return(AB);
}
</syntaxhighlight>