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 with Python
セクション 4.  7
single

single

bookChallenge: Combined Transformations of a Vector

メニューを表示するにはスワイプしてください

タスク

スワイプしてコーディングを開始

You are given a 2D vector:

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

Your goal is to apply a scaling transformation followed by a 90° rotation using matrix multiplication, and visualize the results with arrows and coordinate labels from the origin.

The transformations are defined as:

  • Scaling matrix: S=[2000.5]S = \begin{bmatrix} 2 & 0 \\ 0 & 0.5 \end{bmatrix}
  • Rotation matrix (90°): R=[0110]R = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}

The combined transformation is applied as:

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

Your task:

  1. Define the original vector and the two matrices (S and R).
  2. Use matrix multiplication to compute:
    • The scaled vector.
    • The rotated vector.
    • The combined transformation.
  3. Plot all vectors (v, S·v, and R·(S·v)) as arrows from the origin with labeled tips and visible coordinate axes.
  4. Verify that the computed vectors match the expected results after each transformation.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 4.  7
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt