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

single

Challenge: Combined Transformations of a Vector

Scorri per mostrare il menu

Compito

Scorri per iniziare a programmare

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 34
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

some-alt