Skip to content

Commit

Permalink
Fix latex
Browse files Browse the repository at this point in the history
  • Loading branch information
merveenoyan authored Apr 25, 2024
1 parent 21faa85 commit e5b68de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapters/en/unit8/terminologies/linear-algebra.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Rotations around an axis are another commonly used transformation. There are a n

- Rotation around the X-axis

$$ R_x(\alpha) = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & \cos\alpha & -\sin\alpha & 0 \\ 0 & \sin\alpha & \cos\alpha & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix} $$
$$ R_x(\alpha) = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & \cos\\alpha & -\sin\\alpha & 0 \\ 0 & \sin\\alpha & \cos\\alpha & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix} $$

A little example for a positive 20 degree roation around the X-axis is given below:

Expand Down Expand Up @@ -178,7 +178,7 @@ We are sure you can use the example snippet above and figure out how to implemen

- Rotation around the Z-axis

$$ R_z(\gamma) = \begin{pmatrix} \cos\gamma & -\sin\gamma & 0 & 0 \\ \sin\gamma & \cos\gamma & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix} $$
$$ R_y(\beta) = \begin{pmatrix} \cos\\beta & 0 & \sin\\beta & 0 \\ 0 & 1 & 0 & 0 \\ -\sin\\beta & 0 & \cos\\beta & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix} $$

Again, can you use the last code snippet and implement a rotation around the Z-axis❓

Expand Down Expand Up @@ -207,4 +207,4 @@ plot_cube(ax, final_result, label="Combined", color="violet")

The output should look something like the following.

![output_rotation](https://huggingface.co/datasets/hf-vision/course-assets/resolve/main/combined.png)
![output_rotation](https://huggingface.co/datasets/hf-vision/course-assets/resolve/main/combined.png)

0 comments on commit e5b68de

Please sign in to comment.