Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Combined Transformations of a Vector | Section
Python Math Module Essentials: Trigonometry, Logarithms, and Constants - 1769704232288
Osio 1. Luku 34
single

single

Challenge: Combined Transformations of a Vector

Pyyhkäise näyttääksesi valikon

Tehtävä

Pyyhkäise aloittaaksesi koodauksen

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 34
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

some-alt