Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Dot product (dot)

Dot product of two vectors, or product of two matrices.

How to write it

dot(a, b)

a
A vector or a matrix. Takes a list, or a matrix, written as a list of rows.
b
A vector or a matrix. Takes a list, or a matrix, written as a list of rows.

Examples

  • [1,2,3]⋅[4,5,6]=32\displaystyle \left[ 1, 2, 3 \right] \cdot \left[ 4, 5, 6 \right] = 32
    dot([1, 2, 3], [4, 5, 6])

    In the solver, dot([1, 2, 3], [4, 5, 6]) gives 32.

    Open in the solver
  • (1234)⋅[1,1]=[3,7]\displaystyle \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} \cdot \left[ 1, 1 \right] = \left[ 3, 7 \right]
    dot([[1, 2], [3, 4]], [1, 1])

    In the solver, dot([[1, 2], [3, 4]], [1, 1]) gives [3, 7].

    Open in the solver
  • eigensystem

    Eigenvalues and eigenvectors of a square matrix together: the values, then the vectors.

  • diagonal_matrix

    A matrix with the given list on its diagonal and zeros elsewhere.

  • eigenvalues

    Eigenvalues of a square matrix.

  • diagonal

    The diagonal of a matrix, as a list.

  • eigenvectors

    Eigenvectors of a square matrix, one for each eigenvalue.

  • det

    Determinant of a square matrix.