Skip to content

Commit 0ef5bfe

Browse files
committed
system-design/problem.md: fixed latex indentation issues
1 parent ba56619 commit 0ef5bfe

1 file changed

Lines changed: 73 additions & 80 deletions

File tree

system-design/problem.md

Lines changed: 73 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -82,34 +82,29 @@ The mathematical model is based on the vector rotational transformation model th
8282
* Let vector $\vec{V}$ be a vector in an $R^3$ vectorspace; such that:
8383

8484
$$
85-
\begin{equation*}
8685
\vec{V} = \begin{pmatrix}
8786
\|\vec{V}\| \cdot \cos(\phi_{(\vec{V}, \vec{V}_x)}) \\
8887
\|\vec{V}_{yz}\| \cdot \cos\left(\frac{\pi}{2} - \phi_{(\vec{V}_{yz}, \vec{V}_z)}\right) \\
8988
\|\vec{V}_{yz}\| \cdot \cos(\phi_{(\vec{V}_{yz}, \vec{V}_z)})
9089
\end{pmatrix}
91-
\end{equation*}
9290
$$
9391

9492
* Therefore, the rotated vector around the X-axis using angle $\phi_R$ with the positive direction of Z-axis (Z-convention) using the direction cosines methodology; could be rewritten as a function of the rotational angle by evaluating the addition trigonometric identity using the Euclidean Geometry:
9593

9694
$$
97-
\begin{equation*}
9895
\vec{V}^{'} = \begin{pmatrix}
9996
\|\vec{V}\|\cos(\phi_{(\vec{V}, \vec{V}_x)}) \\
10097
\|\vec{V}_{yz}\|(\sin(\phi_{(\vec{V}_{yz}, \vec{V}_z)})\cos(\phi_{R}) \pm \cos(\phi_{(\vec{V}_{yz}, \vec{V}_z)})
10198
\sin(\phi_{R})) \\
10299
\|\vec{V}_{yz}\|(\cos(\phi_{(\vec{V}_{yz}, \vec{V}_z)})\cos(\phi_{R}) \mp \sin(\phi_{(\vec{V}_{yz}, \vec{V}_z)})
103100
\sin(\phi_{R})) \\
104101
\end{pmatrix}
105-
\end{equation*}
106102
$$
107103

108104

109105
* The rotated vector around the X-axis with Z-convention expressed in direction cosines; could be further rewritten using matrix algebra into a **matrix product of a rotation matrix and the vector column matrix**; where $R_x$ is the rotation matrix around X-Axis with Z-convetion:
110106

111107
$$
112-
\begin{equation*}
113108
\vec{V}^{'} = R_x(\pm \hat{\Phi_R}) \times \vec{V} \\
114109
= \begin{pmatrix}
115110
1 & 0 & 0 \\
@@ -122,94 +117,92 @@ $$
122117
\|\vec{V}_{yz}\|\sin(\phi_{(\vec{V}_{yz}, \vec{V}_z)}) \\
123118
\|\vec{V}_{yz}\|\cos(\phi_{(\vec{V}_{yz}, \vec{V}_z)})
124119
\end{pmatrix}
125-
\\
126-
=
127-
\begin{pmatrix}
128-
1 & 0 & 0 \\
129-
0 & \cos(\phi_{R}) & \pm \sin(\phi_{R}) \\
130-
0 & \mp \sin(\Phi_R) & \cos(\phi_{R})
131-
\end{pmatrix}
132-
\times
133-
\begin{pmatrix}
134-
\cos(\phi_{(\vec{V}, \vec{V}_x)}) \\
135-
\sin(\phi_{(\vec{V}_{yz}, \vec{V}_z)}) \\
136-
\cos(\phi_{(\vec{V}_{yz}, \vec{V}_z)})
137-
\end{pmatrix}
138-
\times
139-
\begin{pmatrix}
140-
\|\vec{V}\| \\
141-
\|\vec{V}_{yz}\| \\
142-
\|\vec{V}_{yz}\|
143-
\end{pmatrix}^\top
144-
\end{equation*}
120+
$$
121+
122+
$$
123+
= \begin{pmatrix}
124+
1 & 0 & 0 \\
125+
0 & \cos(\phi_{R}) & \pm \sin(\phi_{R}) \\
126+
0 & \mp \sin(\Phi_R) & \cos(\phi_{R})
127+
\end{pmatrix}
128+
\times
129+
\begin{pmatrix}
130+
\cos(\phi_{(\vec{V}, \vec{V}_x)}) \\
131+
\sin(\phi_{(\vec{V}_{yz}, \vec{V}_z)}) \\
132+
\cos(\phi_{(\vec{V}_{yz}, \vec{V}_z)})
133+
\end{pmatrix}
134+
\times
135+
\begin{pmatrix}
136+
\|\vec{V}\| \\
137+
\|\vec{V}_{yz}\| \\
138+
\|\vec{V}_{yz}\|
139+
\end{pmatrix}^\top
145140
$$
146141

147142
* Therefore, the rest of rotation operations could be expressed using rotation matrices as follows:
148143
* Rotation around Y-axis (**X-convention**):
149144

150-
$$
151-
\begin{equation*}
152-
\vec{V}^{'} = R_y(\pm \hat{\Phi_R}) \times \vec{V} \\
153-
=
154-
\begin{pmatrix}
145+
$$
146+
\vec{V}^{'} = R_y(\pm \hat{\Phi_R}) \times \vec{V} \\
147+
= \begin{pmatrix}
155148
\|\vec{V}_{xz}\|(\cos(\phi_{R})\cos(\phi_{(\vec{V}_{xz}, \vec{V}_x)}) \mp
156149
\sin(\phi_{R})\sin(\phi_{(\vec{V}_{xz}, \vec{V}_x)})) \\
157150
\|\vec{V}\|\cos(\phi_{(\vec{V}, \vec{V}_y)}) \\
158151
\|\vec{V}_{xz}\|(\pm \sin(\phi_{R})\cos(\phi_{(\vec{V}_{xz}, \vec{V}_x)}) + \cos(\phi_{R})\sin(\phi_{(\vec{V}_{xz}, \vec{V}_x)}))
159-
\end{pmatrix}
160-
\\
161-
= \begin{pmatrix}
162-
\cos(\phi_R) & 0 & \mp \sin(\phi_R) \\
163-
0 & 1 & 0 \\
164-
\pm \sin(\phi_R) & 0 & \cos(\phi_R)
165-
\end{pmatrix}
166-
\times
167-
\begin{pmatrix}
168-
\cos(\phi_{(\vec{V}_{xz}, \vec{V}_x)}) \\
169-
\cos(\phi_{(\vec{V}, \vec{V}_y)}) \\
170-
\sin(\phi_{(\vec{V}_{xz}, \vec{V}_x)})
171-
\end{pmatrix}
172-
\times
173-
\begin{pmatrix}
174-
\|\vec{V}_{xz}\| \\
175-
\|\vec{V}\| \\
176-
\|\vec{V}_{xz}\|
177-
\end{pmatrix}^\top
178-
\end{equation*}
179-
$$
152+
\end{pmatrix}
153+
$$
154+
155+
$$
156+
= \begin{pmatrix}
157+
\cos(\phi_R) & 0 & \mp \sin(\phi_R) \\
158+
0 & 1 & 0 \\
159+
\pm \sin(\phi_R) & 0 & \cos(\phi_R)
160+
\end{pmatrix}
161+
\times
162+
\begin{pmatrix}
163+
\cos(\phi_{(\vec{V}_{xz}, \vec{V}_x)}) \\
164+
\cos(\phi_{(\vec{V}, \vec{V}_y)}) \\
165+
\sin(\phi_{(\vec{V}_{xz}, \vec{V}_x)})
166+
\end{pmatrix}
167+
\times
168+
\begin{pmatrix}
169+
\|\vec{V}_{xz}\| \\
170+
\|\vec{V}\| \\
171+
\|\vec{V}_{xz}\|
172+
\end{pmatrix}^\top
173+
$$
180174

181175
* Rotation around Z-axis (**X-Convention**) using direction cosines:
182-
183-
$$
184-
\begin{equation*}
185-
\vec{V}^{'} = R_z(\pm \hat{\Phi_R}) \times \vec{V} \\
186-
=
187-
\begin{pmatrix}
176+
177+
$$
178+
\vec{V}^{'} = R_z(\pm \hat{\Phi_R}) \times \vec{V} \\
179+
= \begin{pmatrix}
188180
\|\vec{V}_{xy}\|(\cos(\phi_{R})\cos(\phi_{(\vec{V}_{xy}, \vec{V}_x)}) \mp
189181
\sin(\phi_{R})\sin(\phi_{(\vec{V}_{xy}, \vec{V}_x)})) \\
190182
\|\vec{V}_{xy}\|(\pm \sin(\phi_{R})\cos(\phi_{(\vec{V}_{xy}, \vec{V}_x)}) + \cos(\phi_{R})\sin(\phi_{(\vec{V}_{xy}, \vec{V}_x)})) \\
191183
\|\vec{V}\|\cos(\phi_{(\vec{V}, \vec{V}_z)})
192-
\end{pmatrix}
193-
\\
194-
= \begin{pmatrix}
195-
\cos(\phi_R) & \mp \sin(\phi_R) & 0 \\
196-
\pm \sin(\phi_R) & \cos(\phi_R) & 0 \\
197-
0 & 0 & 1
198-
\end{pmatrix}
199-
\times
200-
\begin{pmatrix}
201-
\cos(\phi_{(\vec{V}_{xy}, \vec{V}_x)}) \\
202-
\sin(\phi_{(\vec{V}_{xy}, \vec{V}_x)}) \\
203-
\cos(\phi_{(\vec{V}, \vec{V}_z)}) \\
204-
\end{pmatrix}
205-
\times
206-
\begin{pmatrix}
207-
\|\vec{V}_{xy}\| \\
208-
\|\vec{V}_{xy}\| \\
209-
\|\vec{V}\|
210-
\end{pmatrix}^\top
211-
\end{equation*}
212-
$$
184+
\end{pmatrix}
185+
$$
186+
187+
$$
188+
= \begin{pmatrix}
189+
\cos(\phi_R) & \mp \sin(\phi_R) & 0 \\
190+
\pm \sin(\phi_R) & \cos(\phi_R) & 0 \\
191+
0 & 0 & 1
192+
\end{pmatrix}
193+
\times
194+
\begin{pmatrix}
195+
\cos(\phi_{(\vec{V}_{xy}, \vec{V}_x)}) \\
196+
\sin(\phi_{(\vec{V}_{xy}, \vec{V}_x)}) \\
197+
\cos(\phi_{(\vec{V}, \vec{V}_z)}) \\
198+
\end{pmatrix}
199+
\times
200+
\begin{pmatrix}
201+
\|\vec{V}_{xy}\| \\
202+
\|\vec{V}_{xy}\| \\
203+
\|\vec{V}\|
204+
\end{pmatrix}^\top
205+
$$
213206

214207
* A set of rotations could be achieved by multiplying the rotation matrices to get the final rotation matrix, and then multiply it with the vector coordinates.
215208

@@ -218,7 +211,7 @@ $$
218211
> * The rotation matrix could be derived from the result of the addition trigonometric identities retrieved after adding the angle $\phi_{R}$ to the initial angle $\phi_{0}$.
219212
> * The resulting vector (v') could be obtained by other means:
220213
> 1) Adding the angle of rotation to the initial angle and constructing the rectangular coordinates from the polar vector.
221-
> 2) Deriving the final vector (v') by evaluating the addition trigonometeric identities (i.e., $\cos(\phi_0 \pm \phi_R)$ and $\sin(\phi_0 \pm \phi_R)$).
214+
> 2) Deriving the final vector (v') by evaluating the addition trigonometeric identities (i.e., $\cos(\phi_0 \pm \phi_R)$ and $\sin(\phi_0 \pm \phi_R)$ ).
222215
223216
* Mathematical Modelling: Errors of Rotation and Error Handling Techniques.
224217

@@ -243,4 +236,4 @@ $$
243236
4) [Applied Linear Algebra, Springer](https://link.springer.com/book/10.1007/978-3-319-91041-3)
244237
5) [Handbook of Mathematics, Springer](https://link.springer.com/book/10.1007/978-3-662-46221-8)
245238
6) [Spinal Cord Injuries](https://www.ncbi.nlm.nih.gov/books/NBK560721/)
246-
7) [Medical and Biological Engineering and Computing: Use of cardan angles to locate rigid bodies in three-dimensional space](https://link.springer.com/article/10.1007/BF02441745)
239+
7) [Medical and Biological Engineering and Computing: Use of cardan angles to locate rigid bodies in three-dimensional space](https://link.springer.com/article/10.1007/BF02441745)

0 commit comments

Comments
 (0)