Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Combined Transformations of a Vector | Linear Algebra Foundations
Mathematics for Data Science

bookChallenge: Combined Transformations of a Vector

Apply a scaling transformation and a 90° rotation to a 2D vector using Python and matrix multiplication. Visualize the result with arrows and coordinate labels from the origin.

You're working with a vector:

v=[23]\vec{v} = \begin{bmatrix}2 \\ 3\end{bmatrix}

You will:

  1. Apply a scaling matrix:

    S=[2000.5]S = \begin{bmatrix}2 & 0 \\ 0 & 0.5\end{bmatrix}
  2. Apply a rotation matrix:

    R=[23]R = \begin{bmatrix}2 \\ 3\end{bmatrix}
  3. Combine them as:

R(Sv)R \cdot (S \cdot \vec{v})

This simulates what happens when a vector is first scaled and then rotated.

Завдання

Swipe to start coding

  1. Complete the Python code below to:

    • Define the original vector;

    • Apply the scaling and rotation matrices;

    • Plot all vectors with labeled tips and coordinate axes;

  2. Verify that the output vectors are correct.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 4. Розділ 7
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

Suggested prompts:

Can you show me the Python code for these transformations and the visualization?

Can you explain step by step how the scaling and rotation matrices are applied?

What would the final transformed vector coordinates be?

close

Awesome!

Completion rate improved to 1.89

bookChallenge: Combined Transformations of a Vector

Свайпніть щоб показати меню

Apply a scaling transformation and a 90° rotation to a 2D vector using Python and matrix multiplication. Visualize the result with arrows and coordinate labels from the origin.

You're working with a vector:

v=[23]\vec{v} = \begin{bmatrix}2 \\ 3\end{bmatrix}

You will:

  1. Apply a scaling matrix:

    S=[2000.5]S = \begin{bmatrix}2 & 0 \\ 0 & 0.5\end{bmatrix}
  2. Apply a rotation matrix:

    R=[23]R = \begin{bmatrix}2 \\ 3\end{bmatrix}
  3. Combine them as:

R(Sv)R \cdot (S \cdot \vec{v})

This simulates what happens when a vector is first scaled and then rotated.

Завдання

Swipe to start coding

  1. Complete the Python code below to:

    • Define the original vector;

    • Apply the scaling and rotation matrices;

    • Plot all vectors with labeled tips and coordinate axes;

  2. Verify that the output vectors are correct.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

close

Awesome!

Completion rate improved to 1.89
Секція 4. Розділ 7
single

single

some-alt