next up previous contents index
Next: 6.1.3 Rang et norme Up: 6.1 L'algèbre linéaire Previous: 6.1.1 Calcul de déterminant   Table des matières   Index

6.1.2 Calcul de l'inverse d'une matrice

Afin de calculer l'inverse d'une matrice carrée, on utilisera la fonction inv.
Tapez ces exemples:

  -->A=rand(3,3)
 A  =
 
!   0.2113249    0.3303271    0.8497452 !
!   0.7560439    0.6653811    0.6857310 !
!   0.0002211    0.6283918    0.8782165 !
 
-->inv (A)
 ans  =
 
!   0.7079801    1.1252416  - 1.5636415 !
! - 3.0628747    0.8554450    2.2956276 !
!   2.1914059  - 0.6123814  - 0.5035294 !


   -->x=poly(0,'x');      
 
-->A=([x,1+x;2-x,x^2]);inv(A)
 ans  =
 
!          2                         !
!         x             - 1 - x      !
!   -------------     -------------  !
!            2   3             2   3 !
! - 2 - x + x + x   - 2 - x + x + x  !
!                                    !
!     - 2 + x               x        !
!   -------------     -------------  !
!            2   3             2   3 !
! - 2 - x + x + x   - 2 - x + x + x  !


root
2000-02-07