Вот пример применения матриц поворота в трёхмерном пространстве с использованием TeX:
code Copy code
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Consider a vector $\mathbf{v} = (x, y, z)$ in 3D space. We can rotate it around the $x$, $y$, or $z$ axis using a rotation matrix.
Rotation around the $x$ axis:
$$\mathbf{R}_x(\theta) = \begin{pmatrix}
1 & 0 & 0 \\
0 & \cos\theta & -\sin\theta \\
0 & \sin\theta & \cos\theta
\end{pmatrix}$$
The rotated vector is:
$$\mathbf{v}' = \mathbf{R}_x(\theta) \mathbf{v} = \begin{pmatrix}
1 & 0 & 0 \\
0 & \cos\theta & -\sin\theta \\
0 & \sin\theta & \cos\theta
\end{pmatrix} \begin{pmatrix}
x \\
y \\
z
\end{pmatrix} = \begin{pmatrix}
x \\
y \cos\theta - z \sin\theta \\
y \sin\theta + z \cos\theta
\end{pmatrix}$$
Rotation around the $y$ axis:
$$\mathbf{R}_y(\theta) = \begin{pmatrix}
\cos\theta & 0 & \sin\theta \\
0 & 1 & 0 \\
-\sin\theta & 0 & \cos\theta
\end{pmatrix}$$
The rotated vector is:
$$\mathbf{v}' = \mathbf{R}_y(\theta) \mathbf{v} = \begin{pmatrix}
\cos\theta & 0 & \sin\theta \\
0 & 1 & 0 \\
-\sin\theta & 0 & \cos\theta
\end{pmatrix} \begin{pmatrix}
x \\
y \\
z
\end{pmatrix} = \begin{pmatrix}
x \cos\theta - z \sin\theta \\
y \\
x \sin\theta + z \cos\theta
\end{pmatrix}$$
Rotation around the $z$ axis:
$$\mathbf{R}_z(\theta) = \begin{pmatrix}
\cos\theta & -\sin\theta & 0 \\
\sin\theta & \cos\theta & 0 \\
0 & 0 & 1
\end{pmatrix}$$
The rotated vector is:
$$\mathbf{v}' = \mathbf{R}_z(\theta) \mathbf{v} = \begin{pmatrix}
\cos\theta & -\sin\theta & 0 \\
\sin\theta & \cos\theta & 0 \\
0 & 0 & 1
\end{pmatrix} \begin{pmatrix}
x \\
y \\
z
\end{pmatrix} = \begin{pmatrix}
x \cos\theta - y \sin\theta \\
x \sin\theta + y \cos\theta \\
z
\end{pmatrix}$$
\end{document}
Вы можете скопировать этот текст в ваш редактор TeX и запустить его, чтобы получить готовый документ с матрицами поворота.
Чтобы преобразовать это в MathType, вам нужно:
Открыть MathType и создать новый документ.
Вставьте матрицы поворота, используя инструмент "Matrix" в MathType.
Измените размер шрифта иstyle матриц, если необходимо.
Вставьте векторы и коэффициенты поворота, используя инструмент "Vector" и "Number" в MathType.
Установите формат матриц и векторов, используя инструмент "Format" в MathType.
Убедитесь, что матрицы и векторы правильно выравнены и отформатированы.
Пример преобразованной версии матриц поворота в MathType:
code Copy code
Matrix[3, 3] R_x(theta) =
{
{1, 0, 0},
{0, cos(theta), -sin(theta)},
{0, sin(theta), cos(theta)}
}
Matrix[3, 3] R_y(theta) =
{
{cos(theta), 0, sin(theta)},
{0, 1, 0},
{-sin(theta), 0, cos(theta)}
}
Matrix[3, 3] R_z(theta) =
{
{cos(theta), -sin(theta), 0},
{sin(theta), cos(theta), 0},
{0, 0, 1}
}
Вот пример вставки вектора и коэффициента поворота:
code Copy code
Vector[3] v = {x, y, z}
Вот пример форматирования матриц и векторов:
code Copy code
Format: Matrix: 3x3, Vector: 3D
Убедитесь, что матрицы и векторы правильно выравнены и отформатированы, чтобы они выглядели как в примере TeX.