Beginner Topic 6 of 51 Math for Computing
Vectors
Quantities with magnitude and direction.
How it works
A vector is a quantity with magnitude and direction, represented as an ordered list of numbers, an arrow in space or a point relative to the origin. Basic operations are addition, subtraction, scalar multiplication, length (norm) and normalization to unit length. Vector spaces generalize the idea with a basis, linear combinations, span and independence. In computing, vectors represent positions, velocities, colors, features and embeddings.
Where it is used
Graphics and game physics, machine learning features and embeddings, signal processing, robotics and geometry all use vectors.
Common pitfall
Mixing points and directions, which transform differently, and adding vectors with different dimensions or coordinate systems cause bugs. Normalizing a zero vector divides by zero. Row versus column conventions affect matrix products. Floating-point precision matters for comparing directions, so use tolerances. Keep track of units and reference frames.
Where it fits in the course
Vectors is topic 6 of 51 in Math for Computing, rated Beginner. It follows Functions and Graphs. The next topic is Dot Product.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Math for Computing quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Math for Computing quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Vectors?
Where do people use Vectors?
What is the most common mistake with Vectors?
What should I learn before this topic?
How can I practice it?
Is Vectors hard to learn?
How long does it take to learn Vectors?
Which topics are related to Vectors?
What should I study after Vectors?
Related topics
- Functions and Graphs (Math for Computing)
- Dot Product (Math for Computing)
- Summations and Series (Math for Computing)
- Matrices (Math for Computing)