home.social

#linearalgebra — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #linearalgebra, aggregated by home.social.

  1. for all your homework:

    #!/usr/bin/env python3
    import sys,ast,numpy as np
    a=np.array(ast.literal_eval(sys.argv[1]))
    print("Matrix:")
    print(np.matrix(a))
    print("\nTranspose:")
    print(np.matrix(a.T))
    print("\nTrace:",a.trace())
    print("\nRank:",np.linalg.matrix_rank(a))
    if a.shape[0]==a.shape[1]:
    print("\nDeterminant:",round(np.linalg.det(a),6))
    d,e=np.linalg.eig(a)
    print("\nEigenvalues:",np.round(d,6))
    print("\nEigenvectors:")
    print(np.round(e,6))
    print("\nPseudo-inverse:")
    print(np.matrix(np.linalg.pinv(a)))

  2. Alright, future engineers!
    The **Dot Product** takes two vectors and returns a scalar. It tells you how much they align!
    Ex: For `v=[v1,v2]` & `w=[w1,w2]`, `v.w = v1w1 + v2w2`.
    Pro-Tip: If `v.w = 0`, the vectors are orthogonal (perpendicular)!
    #LinearAlgebra #Vectors #STEM #StudyNotes

  3. Alright, future engineers!
    The **Dot Product** takes two vectors and returns a scalar. It tells you how much they align!
    Ex: For `v=[v1,v2]` & `w=[w1,w2]`, `v.w = v1w1 + v2w2`.
    Pro-Tip: If `v.w = 0`, the vectors are orthogonal (perpendicular)!
    #LinearAlgebra #Vectors #STEM #StudyNotes

  4. Alright, future engineers!
    The **Dot Product** takes two vectors and returns a scalar. It tells you how much they align!
    Ex: For `v=[v1,v2]` & `w=[w1,w2]`, `v.w = v1w1 + v2w2`.
    Pro-Tip: If `v.w = 0`, the vectors are orthogonal (perpendicular)!
    #LinearAlgebra #Vectors #STEM #StudyNotes

  5. Alright, future engineers!
    The **Dot Product** takes two vectors and returns a scalar. It tells you how much they align!
    Ex: For `v=[v1,v2]` & `w=[w1,w2]`, `v.w = v1w1 + v2w2`.
    Pro-Tip: If `v.w = 0`, the vectors are orthogonal (perpendicular)!
    #LinearAlgebra #Vectors #STEM #StudyNotes

  6. Alright, future engineers!
    The **Dot Product** takes two vectors and returns a scalar. It tells you how much they align!
    Ex: For `v=[v1,v2]` & `w=[w1,w2]`, `v.w = v1w1 + v2w2`.
    Pro-Tip: If `v.w = 0`, the vectors are orthogonal (perpendicular)!
    #LinearAlgebra #Vectors #STEM #StudyNotes

  7. Alright, future engineers!

    The **Determinant** of a square matrix is a scalar value that tells you if the matrix is invertible.
    Ex: For `[[a,b],[c,d]]`, `det = ad - bc`.
    Pro-Tip: If `det = 0`, the matrix is singular (no inverse), meaning `Ax=b` has no unique solution!

    #LinearAlgebra #Matrices #STEM #StudyNotes

  8. Alright, future engineers!

    The **Determinant** of a square matrix is a scalar value that tells you if the matrix is invertible.
    Ex: For `[[a,b],[c,d]]`, `det = ad - bc`.
    Pro-Tip: If `det = 0`, the matrix is singular (no inverse), meaning `Ax=b` has no unique solution!

    #LinearAlgebra #Matrices #STEM #StudyNotes

  9. Alright, future engineers!

    The **Determinant** of a square matrix is a scalar value that tells you if the matrix is invertible.
    Ex: For `[[a,b],[c,d]]`, `det = ad - bc`.
    Pro-Tip: If `det = 0`, the matrix is singular (no inverse), meaning `Ax=b` has no unique solution!

    #LinearAlgebra #Matrices #STEM #StudyNotes

  10. Alright, future engineers!

    The **Determinant** of a square matrix is a scalar value that tells you if the matrix is invertible.
    Ex: For `[[a,b],[c,d]]`, `det = ad - bc`.
    Pro-Tip: If `det = 0`, the matrix is singular (no inverse), meaning `Ax=b` has no unique solution!

    #LinearAlgebra #Matrices #STEM #StudyNotes

  11. Alright, future engineers!

    The **Determinant** of a square matrix is a scalar value that tells you if the matrix is invertible.
    Ex: For `[[a,b],[c,d]]`, `det = ad - bc`.
    Pro-Tip: If `det = 0`, the matrix is singular (no inverse), meaning `Ax=b` has no unique solution!

    #LinearAlgebra #Matrices #STEM #StudyNotes

  12. Alright, future engineers!
    **Matrix multiplication** combines two matrices, forming a new one where elements are dot products of rows & columns.
    Ex: `(AB)_ij = sum(A_ik * B_kj)`. Inner dimensions must match!
    Pro-Tip: It's NOT commutative (AB != BA)!
    #Matrices #LinearAlgebra #STEM #StudyNotes

  13. Alright, future engineers!
    **Matrix multiplication** combines two matrices, forming a new one where elements are dot products of rows & columns.
    Ex: `(AB)_ij = sum(A_ik * B_kj)`. Inner dimensions must match!
    Pro-Tip: It's NOT commutative (AB != BA)!
    #Matrices #LinearAlgebra #STEM #StudyNotes

  14. Alright, future engineers!
    **Matrix multiplication** combines two matrices, forming a new one where elements are dot products of rows & columns.
    Ex: `(AB)_ij = sum(A_ik * B_kj)`. Inner dimensions must match!
    Pro-Tip: It's NOT commutative (AB != BA)!
    #Matrices #LinearAlgebra #STEM #StudyNotes

  15. Alright, future engineers!
    **Matrix multiplication** combines two matrices, forming a new one where elements are dot products of rows & columns.
    Ex: `(AB)_ij = sum(A_ik * B_kj)`. Inner dimensions must match!
    Pro-Tip: It's NOT commutative (AB != BA)!
    #Matrices #LinearAlgebra #STEM #StudyNotes

  16. Alright, future engineers!
    **Matrix multiplication** combines two matrices, forming a new one where elements are dot products of rows & columns.
    Ex: `(AB)_ij = sum(A_ik * B_kj)`. Inner dimensions must match!
    Pro-Tip: It's NOT commutative (AB != BA)!
    #Matrices #LinearAlgebra #STEM #StudyNotes

  17. Alright, future engineers!

    The **Dot Product** of two vectors gives a scalar, measuring their alignment.
    Ex: For `v=[1,2]`, `w=[3,4]`, `v.w = (1*3) + (2*4) = 11`.
    Pro-Tip: A zero dot product means the vectors are orthogonal!

    #LinearAlgebra #Vectors #STEM #StudyNotes

  18. Alright, future engineers!

    The **Dot Product** of two vectors gives a scalar, measuring their alignment.
    Ex: For `v=[1,2]`, `w=[3,4]`, `v.w = (1*3) + (2*4) = 11`.
    Pro-Tip: A zero dot product means the vectors are orthogonal!

    #LinearAlgebra #Vectors #STEM #StudyNotes

  19. Alright, future engineers!

    The **Dot Product** of two vectors gives a scalar, measuring their alignment.
    Ex: For `v=[1,2]`, `w=[3,4]`, `v.w = (1*3) + (2*4) = 11`.
    Pro-Tip: A zero dot product means the vectors are orthogonal!

    #LinearAlgebra #Vectors #STEM #StudyNotes

  20. Alright, future engineers!

    The **Dot Product** of two vectors gives a scalar, measuring their alignment.
    Ex: For `v=[1,2]`, `w=[3,4]`, `v.w = (1*3) + (2*4) = 11`.
    Pro-Tip: A zero dot product means the vectors are orthogonal!

    #LinearAlgebra #Vectors #STEM #StudyNotes

  21. Alright, future engineers!

    The **Dot Product** of two vectors gives a scalar, measuring their alignment.
    Ex: For `v=[1,2]`, `w=[3,4]`, `v.w = (1*3) + (2*4) = 11`.
    Pro-Tip: A zero dot product means the vectors are orthogonal!

    #LinearAlgebra #Vectors #STEM #StudyNotes

  22. OH "Most programmers will go far, far, far out of their way with trigonometry and complex loops to avoid having to learn basic #linearalgebra things."

  23. OH "Most programmers will go far, far, far out of their way with trigonometry and complex loops to avoid having to learn basic #linearalgebra things."

  24. OH "Most programmers will go far, far, far out of their way with trigonometry and complex loops to avoid having to learn basic #linearalgebra things."

  25. OH "Most programmers will go far, far, far out of their way with trigonometry and complex loops to avoid having to learn basic #linearalgebra things."

  26. OH "Most programmers will go far, far, far out of their way with trigonometry and complex loops to avoid having to learn basic #linearalgebra things."

  27. Alright, future engineers!
    The **Norm** (`||v||`) is the length or magnitude of a vector. Ex: For `v=[3,4]`, `||v|| = sqrt(3^2 + 4^2) = 5`. Pro-Tip: Essential for calculating distances & normalizing vectors to unit length!
    #LinearAlgebra #VectorMath #STEM #StudyNotes

  28. Alright, future engineers!
    The **Norm** (`||v||`) is the length or magnitude of a vector. Ex: For `v=[3,4]`, `||v|| = sqrt(3^2 + 4^2) = 5`. Pro-Tip: Essential for calculating distances & normalizing vectors to unit length!
    #LinearAlgebra #VectorMath #STEM #StudyNotes

  29. Alright, future engineers!
    The **Norm** (`||v||`) is the length or magnitude of a vector. Ex: For `v=[3,4]`, `||v|| = sqrt(3^2 + 4^2) = 5`. Pro-Tip: Essential for calculating distances & normalizing vectors to unit length!
    #LinearAlgebra #VectorMath #STEM #StudyNotes

  30. Alright, future engineers!
    The **Norm** (`||v||`) is the length or magnitude of a vector. Ex: For `v=[3,4]`, `||v|| = sqrt(3^2 + 4^2) = 5`. Pro-Tip: Essential for calculating distances & normalizing vectors to unit length!
    #LinearAlgebra #VectorMath #STEM #StudyNotes

  31. Alright, future engineers!
    The **Norm** (`||v||`) is the length or magnitude of a vector. Ex: For `v=[3,4]`, `||v|| = sqrt(3^2 + 4^2) = 5`. Pro-Tip: Essential for calculating distances & normalizing vectors to unit length!
    #LinearAlgebra #VectorMath #STEM #StudyNotes

  32. Alright, future engineers!

    The **Identity Matrix (I)** is a square matrix with 1s on the main diagonal & 0s elsewhere.
    Ex: For 2x2, `I = [[1,0],[0,1]]`.
    Pro-Tip: It's the 1 of matrix multiplication – `AI = IA = A`. Essential for inverses!
    #LinearAlgebra #MatrixMath #STEM #StudyNotes

  33. Alright, future engineers!

    The **Identity Matrix (I)** is a square matrix with 1s on the main diagonal & 0s elsewhere.
    Ex: For 2x2, `I = [[1,0],[0,1]]`.
    Pro-Tip: It's the 1 of matrix multiplication – `AI = IA = A`. Essential for inverses!
    #LinearAlgebra #MatrixMath #STEM #StudyNotes

  34. Alright, future engineers!

    The **Identity Matrix (I)** is a square matrix with 1s on the main diagonal & 0s elsewhere.
    Ex: For 2x2, `I = [[1,0],[0,1]]`.
    Pro-Tip: It's the 1 of matrix multiplication – `AI = IA = A`. Essential for inverses!
    #LinearAlgebra #MatrixMath #STEM #StudyNotes

  35. Alright, future engineers!

    The **Identity Matrix (I)** is a square matrix with 1s on the main diagonal & 0s elsewhere.
    Ex: For 2x2, `I = [[1,0],[0,1]]`.
    Pro-Tip: It's the 1 of matrix multiplication – `AI = IA = A`. Essential for inverses!
    #LinearAlgebra #MatrixMath #STEM #StudyNotes

  36. Alright, future engineers!

    The **Identity Matrix (I)** is a square matrix with 1s on the main diagonal & 0s elsewhere.
    Ex: For 2x2, `I = [[1,0],[0,1]]`.
    Pro-Tip: It's the 1 of matrix multiplication – `AI = IA = A`. Essential for inverses!
    #LinearAlgebra #MatrixMath #STEM #StudyNotes

  37. Alright, future engineers!
    **Matrix Multiplication** combines two matrices `A` & `B` into `C=AB`. Each `C_ij` is `(Row i of A) . (Col j of B)`.
    Ex: `(m x n)` times `(n x p)` gives `(m x p)`. Inner dimensions `n` must match!
    Pro-Tip: Order matters! `AB` is rarely equal to `BA` (not commutative).
    #LinearAlgebra #MatrixOps #STEM #StudyNotes

  38. Alright, future engineers!
    **Matrix Multiplication** combines two matrices `A` & `B` into `C=AB`. Each `C_ij` is `(Row i of A) . (Col j of B)`.
    Ex: `(m x n)` times `(n x p)` gives `(m x p)`. Inner dimensions `n` must match!
    Pro-Tip: Order matters! `AB` is rarely equal to `BA` (not commutative).
    #LinearAlgebra #MatrixOps #STEM #StudyNotes

  39. Alright, future engineers!
    **Matrix Multiplication** combines two matrices `A` & `B` into `C=AB`. Each `C_ij` is `(Row i of A) . (Col j of B)`.
    Ex: `(m x n)` times `(n x p)` gives `(m x p)`. Inner dimensions `n` must match!
    Pro-Tip: Order matters! `AB` is rarely equal to `BA` (not commutative).
    #LinearAlgebra #MatrixOps #STEM #StudyNotes

  40. Alright, future engineers!
    **Matrix Multiplication** combines two matrices `A` & `B` into `C=AB`. Each `C_ij` is `(Row i of A) . (Col j of B)`.
    Ex: `(m x n)` times `(n x p)` gives `(m x p)`. Inner dimensions `n` must match!
    Pro-Tip: Order matters! `AB` is rarely equal to `BA` (not commutative).
    #LinearAlgebra #MatrixOps #STEM #StudyNotes

  41. Alright, future engineers!
    **Matrix Multiplication** combines two matrices `A` & `B` into `C=AB`. Each `C_ij` is `(Row i of A) . (Col j of B)`.
    Ex: `(m x n)` times `(n x p)` gives `(m x p)`. Inner dimensions `n` must match!
    Pro-Tip: Order matters! `AB` is rarely equal to `BA` (not commutative).
    #LinearAlgebra #MatrixOps #STEM #StudyNotes

  42. Alright, future engineers!
    A **Determinant** is a scalar value that provides properties of a square matrix (e.g., if it's invertible).
    Ex: For `A = [[a,b],[c,d]]`, `det(A) = ad - bc`.
    Pro-Tip: If `det(A) = 0`, the matrix is singular (no inverse)!

    #LinearAlgebra #MatrixMath #STEM #StudyNotes

  43. Alright, future engineers!
    A **Determinant** is a scalar value that provides properties of a square matrix (e.g., if it's invertible).
    Ex: For `A = [[a,b],[c,d]]`, `det(A) = ad - bc`.
    Pro-Tip: If `det(A) = 0`, the matrix is singular (no inverse)!

    #LinearAlgebra #MatrixMath #STEM #StudyNotes

  44. Alright, future engineers!
    A **Determinant** is a scalar value that provides properties of a square matrix (e.g., if it's invertible).
    Ex: For `A = [[a,b],[c,d]]`, `det(A) = ad - bc`.
    Pro-Tip: If `det(A) = 0`, the matrix is singular (no inverse)!

    #LinearAlgebra #MatrixMath #STEM #StudyNotes

  45. Alright, future engineers!
    A **Determinant** is a scalar value that provides properties of a square matrix (e.g., if it's invertible).
    Ex: For `A = [[a,b],[c,d]]`, `det(A) = ad - bc`.
    Pro-Tip: If `det(A) = 0`, the matrix is singular (no inverse)!

    #LinearAlgebra #MatrixMath #STEM #StudyNotes