Skip to content

BanVacc/java-matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Тестовое задание

Тесты

Cross product (Векторное произведение)

$$\begin{bmatrix} 3 & -3 & 1 \end{bmatrix} \times \begin{bmatrix} 4 & 9 & 2 \end{bmatrix} = \begin{bmatrix} -3 \cdot 2 - 1 \cdot 9 & 3 \cdot 2 - 1 \cdot 4 & 3 \cdot 9 + 3 \cdot 4 \end{bmatrix} = \begin{bmatrix} -15 & -2 & 39 \end{bmatrix}$$

Dot product (Скалярное произведение)

$$\begin{bmatrix} 1 & 3 & -5 \end{bmatrix} \cdot \begin{bmatrix} 4 & -2 & -1 \end{bmatrix} = (1 \cdot 4) + (3 \cdot -2) + (-5 \cdot -1) = 3$$

Matrix multiplication (Умножение матриц)

$$\begin{bmatrix} 1 & 2 & 3 \\\ 4 & 5 & 6 \end{bmatrix} \cdot \begin{bmatrix} 10 & 11 \\\ 20 & 21 \\\ 30 & 31 \end{bmatrix} = \begin{bmatrix} 1 \cdot 10 + 2 \cdot 20 + 3 \cdot 30 & 1 \cdot 11 + 2 \cdot 21 + 3 \cdot 31 \\\ 4 \cdot 10 + 5 \cdot 20 + 6 \cdot 30 & 4 \cdot 11 + 5 \cdot 21 + 6 \cdot 31 \end{bmatrix} = \begin{bmatrix} 140 & 146 \\\ 320 & 335 \end{bmatrix}$$

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages