🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to AI Notes
Topic #48

Vectors

Vectors are 1-dimentional Arrays

Vectors have a Magnitude and a Direction

Vectors typically describes Motion or Force

Vector Notation

Vectors can be written in many ways. The most common are:

Col 1 Col 2 Col 3
v = 1 2 3
1 2 3

or:

Col 1 Col 2
v = 1 2 3
1
2
3

Vectors in Geometry

Col 1 Col 2
The image to the left is a Vector. The Length shows the Magnitude. The Arrow shows the Direction.

Motion

Vectors are the building blocks of Motion

In geometry, a vector can describe a movement from one point to another.

The vector [3, 2] says go 3 right and 2 up.


Vector Addition

The sum of two vectors (a+b) is found by moving the vector b until the tail meets the head of vector a. (This does not change vector b).

Then, the line from the tail of a to the head of b is the vector a+b:

Adding Vectors


Vector Subtraction

Vector -a is the opposite of +a.

This means that vector a and vector -a has the same magnitude in opposite directions:

Adding Vectors


Scalar Operations

Vectors can be modified by adding, subtracting, or multiplying a scalar (number) from all the vector values:

a = [1 1 1]

a + 1 = [2 2 2]

[1 2 3] + 1 = [2 3 4]

Vector multiplications has much of the same properties as normal multiplication:

[2 2 2] * 3 = [6 6 6]

[6 6 6] / 3 = [2 2 2]


Force

Force is a Vector.

Force is a vector with a Magnitude and a Direction.


Velocity

Velocity is a Vector.

Velocity is a vector with a Magnitude and a Direction.

Want to go beyond the notes?

Join CodingNow 2.0's AI course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

Vectors – FAQs

Quick answers about learning Vectors in AI.

This free note from CodingNow 2.0 explains Vectors in AI — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every AI topic on CodingNow 2.0, including Vectors, is 100% free with no signup required.
With focused practice, most students grasp Vectors in 1–3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now