4. Exemples d’utilisation#
4.1. Combinaison linéaire classique#
mat_rs = COMB_MATR_ASSE(COMB_C = ( _F( MATR_ASSE = mat_1,
COEF_R = 1.), _F( MATR_ASSE= mat_2, COEF_C= (“RI”, 0.,1.,),) ,),)
Le concept produit mat_rs est du type matr_asse_*_C (complexe):
mat_rs = mat_1 + i mat_2
4.2. Recopie d’un concept de type matr_asse_*_R#
mat_sauv = COMB_MATR_ASSE( COMB_R = _F ( MATR_ASSE = mat_1,
COEF_R = 1.))
4.3. Différence entre COMB_C et COMB_R :#
mat_R = COMB_MATR_ASSE( COMB_R = _F ( MATR_ASSE = mat_1,
COEF_R = 1.))
# mat_R est à coefficients réels mat_R = mat_1
mat_C = COMB_MATR_ASSE( COMB_C = _F ( MATR_ASSE = mat_1,
COEF_R = 1.))
# mat_C est à coefficients complexes, mais la partie imaginaire est nulle mat_C = mat_1 + i. [0].
4.4. Extraction de la partie réelle d’une matrice de type matr_asse_*_C#
mat_R = COMB_MATR_ASSE ( COMB_R = _F( PARTIE = 'REEL',
MATR_ASSE = mat_C, COEF_R = 1. , ), )