SageMath - Matrices and Matrix Operations with Sage Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 พ.ย. 2024

ความคิดเห็น • 10

  • @mccpytutorials7955
    @mccpytutorials7955  4 ปีที่แล้ว +4

    Time Stamps:
    Intro/Vocabulary - 0:58
    Making a matrix - 2:45
    Making a vector - 7:10
    Specifying a "ring" for your matrix - 8:43
    Storing a matrix in a variable - 14:23
    Matrix operations (e.g. addition, multiplication) - 18:11
    Special matrices (ones_matrix(), zero_matrix(), identity_matrix(), random_matrix()) - 21:55
    Accessing an element(s) from your matrix - 26:21

  • @iloveyouall6393
    @iloveyouall6393 ปีที่แล้ว +1

    The video is really helpful, thanks

  • @erikaleblanc9214
    @erikaleblanc9214 4 ปีที่แล้ว +1

    Could you do a tutorial on vandermonde matrices for sage PLEASE!

    • @mccpytutorials7955
      @mccpytutorials7955  4 ปีที่แล้ว +2

      Thanks for the suggestion! Will look into doing that, in the meantime here are some resources for you: doc.sagemath.org/html/en/reference/matrices/sage/matrix/special.html#sage.matrix.special.vandermonde
      gregorybard.com/books.html - click on the "Sage for Undergraduates" and go to Section 1.5.7 ("Vandermonde's Matrix").
      Hope this helps!

  • @setok3358
    @setok3358 4 ปีที่แล้ว +1

    I've got one question. How can I get the rows and columns of a matrix?

    • @mccpytutorials7955
      @mccpytutorials7955  4 ปีที่แล้ว +3

      Hi - good question. For a matrix "A" you can use A.nrows() for number of rows and A.ncols() for number of columns like so:
      In: A = matrix(ZZ, 3, 2, [1, 2, 3, 4, 5, 6])
      In: A.ncols()
      Out: 2
      In: A.nrows()
      Out: 3
      ask.sagemath.org/question/8020/matrix-size/; doc.sagemath.org/pdf/en/reference/matrices/matrices.pdf at 10-11.

    • @setok3358
      @setok3358 4 ปีที่แล้ว +1

      @@mccpytutorials7955 thank you!

    • @mccpytutorials7955
      @mccpytutorials7955  4 ปีที่แล้ว +2

      My pleasure - good luck!

  • @sameerjaved5986
    @sameerjaved5986 ปีที่แล้ว

    how can we implement inverse of a matrix in sagemath

    • @letterborneVods
      @letterborneVods ปีที่แล้ว

      You could try (matrix)^(-1)? But I'm not entirely sure.