Linear Algebra with the help of SAGE - PowerPoint PPT Presentation

1 / 10
About This Presentation
Title:

Linear Algebra with the help of SAGE

Description:

Linear Algebra with the help of SAGE. What is SAGE ? ... x=var( x') tells the sage to recognize x' as ... A.nullity() gives the dimension of null space of A. ... – PowerPoint PPT presentation

Number of Views:69
Avg rating:3.0/5.0
Slides: 11
Provided by: Mat137
Category:
Tags: sage | algebra | help | linear | nullity

less

Transcript and Presenter's Notes

Title: Linear Algebra with the help of SAGE


1
Linear Algebra with the help of SAGE
2
What is SAGE ?
  • free open source mathematics software system.
  • Visit www.sagemath.org and open a free account .
  • Have a web version, so no need to download and
    install !!

3
Some Basics
  • xvar(x) tells the sage to recognize x as a
    symbolic variable.
  • Typing Command?? displays the syntax and
    examples for the required command.
  • Can save the worksheet for future reference.
  • Keyboard shortcut for evaluate is shiftreturn.

4
Matrix Notations
  • Amatrix(RDF,1,2,4,5) defines a matrix of
    order 2 by 2 over the field of real numbers.
  • Operations like matrix addition, multiplication
    by matrix or scalar are defined as usual.

5
Determinant and Inverse
  • Det(A) gives the determinant of a matrix, A.
  • A.inverse() gives the inverse of A.

6
LU-Decomposition
  • P,L,UA.LU() give a tuple of 3 matrices
    corresponding to P, L, U resp.
  • P is the permutation matrix.
  • L is the lower triangular matrix.
  • U is the upper triangular matrix.
  • Here PALU.

7
Rank of a matrix
  • Rank(A) gives the rank of matrix A.
  • A.nullity() gives the dimension of null space of
    A.
  • For dimension of left kernel/null space use
    A.left_nullity().

8
Eigen Values
  • A.eigenvalues() gives the Eigen values.
  • A.eigenvectors_left() returns left Eigen vectors.
  • A.eigenspaces() gives dimension of Eigen space
    for each Eigen value.

9
Some more ..
  • B.echelon_form() gives the reduced Echelon form
    of B.
  • B.row_space() gives the basis and dimension of
    row space of B.

10
Help
  • Type A. and the press Tab key. It lists all
    sorts of nice things we can do with matrices.
Write a Comment
User Comments (0)
About PowerShow.com