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

single

Challenge: Combined Transformations of a Vector

Stryg for at vise menuen

Opgave

Swipe to start coding

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.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 34
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

some-alt