Learning Module · Detail

Vector Decomposition – Experimentation Sandbox

This module introduces fundamental concepts of vector calculus, particularly the decomposition of a vector into its components and the determination of magnitude and angle. The graphical representation supports understanding of mathematical relationships between model and implementation.

Time 0 min
Format Pygame
Language Python 2
Tasks 0
Preview Image: Vector Decomposition – Experimentation Sandbox

Introduction (Original excerpt)

This sandbox is intended for free experimentation. You control a vector in a 2D area and observe how its components, length, and angle change. The goal is not to achieve a finished result but to understand by trying. Understanding through Experimentation.

Didactic Classification

Subjective Objective

In the center of this module is the fundamental concept of vector decomposition in a two-dimensional plane. A vector is represented and mathematically analyzed from a fixed origin point to a freely chosen target position, with its Cartesian components determined and related to its magnitude and angle. The learning environment combines a visual representation with mathematical calculations in program code, making it clear how geometric models can be algorithmically implemented. The connection between graphical representation and numerical calculation supports a structured understanding of central concepts in vector calculus.

Competence development

Didactic added value in teaching

Flow of the lesson unit

Work assignment (excerpt)

1. Set different target points by mouse interaction and observe the changes in vector components. 2. Analyze how magnitude and angle of the vector change at different positions. 3. Investigate horizontal and vertical movements specifically and compare the resulting values for dx and dy.

Example (excerpt)

The following code fragment shows the calculation of vector components as well as magnitude and angle based on the target position.

1
2
3
4
5
dx = ziel_x - cx
dy = ziel_y - cy

betrag = math.hypot(dx, dy)
winkel = math.degrees(math.atan2(-dy, dx))

This fragment illustrates how geometric properties of a vector can be directly calculated from the coordinates of two points.

Notes for classroom practice

The visual decomposition of a vector connects mathematical model understanding with algorithmically executable implementation.

The clear structure of the task facilitates lesson organization and enables systematic result verification. Extension tasks can be used for differentiation.

Request a demo access and test this module in your own teaching context.