当前位置:网站首页>What exactly is a vector?
What exactly is a vector?
2022-04-21 19:53:00 【CN-Dust】
What is a vector ?
From the perspective of Physics
From the perspective of Physics , A vector is an arrow in space , Determine the characteristics of the vector as its length and its direction , As long as the two characteristics are the same , You can move a vector freely and keep it unchanged .
A vector in a plane is two-dimensional , And the vector in the space we live in is three-dimensional .
From the perspective of computer science
From the perspective of Computer Science , A vector is an ordered list of numbers .
for example , Suppose we analyze house prices , You can use two-dimensional vectors to model houses . The first number represents the area of the house , The second number indicates the price .
ad locum ,“ vector ” nothing but “ list ” A fancy expression of .
The reason why this vector is two-dimensional , Because the length of this list is 2.

From the perspective of Mathematics
From the perspective of Mathematics , Vectors can make anything , Just need it to make sense .
The coordinates of a two-dimensional vector
The coordinates of a vector consist of a logarithm , This logarithm guides you from the origin ( Vector starting point ) Set out to reach its tip ( Vector end point ).
The first number tells you to follow x x x How far does the axis go , The second number tells you to follow y y y How far does the axis go .
For example, the following vector , Just along x x x Axis travel − 2.0 -2.0 −2.0 Unit length , Then along y y y Axis travel − 1.5 -1.5 −1.5 Unit length . When the length is negative , That is to walk in the opposite direction to the positive direction .

The coordinates of a three-dimensional vector
Based on the two-dimensional coordinate system , Add perpendicular to x x x Axis and y y y The third axis of the shaft , Call it z z z Axis .

under these circumstances , Each vector has an ordered array of three primitives corresponding to it . The first number tells you to follow x x x How far does the axis go , The second number tells you to follow y y y How far does the axis go , The third number tells you to follow z z z How far does the axis go .

Vector addition and vector number multiplication
Vector addition
Suppose two vectors in the graph are added , Let's comment on the second vector , Make its starting point coincide with the end of the first vector .

Then draw a vector , It starts from the starting point of the first vector , Point to the end of the second vector .

This vector is their sum .
From a numerical point of view , The coordinates of the first vector are [ 1 2 ] \left[\begin{array}{l}1 \\2\end{array}\right] [12], The coordinates of the second vector are [ 3 − 1 ] \left[\begin{array}{l}3 \\-1\end{array}\right] [3−1].

It's not hard to find out , The sum vector is equal to moving to the right first ( 1 + 3 ) (1+3) (1+3) Step , Move up again ( 2 − 1 ) (2-1) (2−1) Step .

So the sum vector is :
[ 1 2 ] + [ 3 − 1 ] = [ 1 + 3 2 + ( − 1 ) ] \left[\begin{array}{l}1 \\2\end{array}\right]+\left[\begin{array}{l}3 \\-1\end{array}\right]=\left[\begin{array}{l}1+3 \\2+(-1)\end{array}\right] [12]+[3−1]=[1+32+(−1)]
The addition of vectors is to add up the corresponding numbers .
[ x 1 y 1 ] + [ x 2 y 2 ] = [ x 1 + x 2 y 1 + y 2 ] \left[\begin{array}{l}x_{1} \\y_{1}\end{array}\right]+\left[\begin{array}{l}x_{2} \\y_{2}\end{array}\right]=\left[\begin{array}{l}x_{1}+x_{2} \\y_{1}+y_{2}\end{array}\right] [x1y1]+[x2y2]=[x1+x2y1+y2]
Vector number times
Vector number multiplication is to lengthen the vector to the original n times .
for example :


there n n n Not having the property of a vector , It's called Scalar .
Coordinate system
In general , x x x The positive length of the shaft is 1 The vector of and y y y The positive length of the shaft is 1 The vector of forms a coordinate system , however , We can also customize these two unit vectors , To change our coordinate system .
Zhang Cheng's space
v ⃗ \vec{v} v And w ⃗ \vec{w} w The vector set of all linear combinations is called “ Zhang Cheng's space ”.
When v ⃗ \vec{v} v And w ⃗ \vec{w} w When it's not collinear , The space formed is a plane .
When v ⃗ \vec{v} v And w ⃗ \vec{w} w Collinear , The space formed is a straight line .
When v ⃗ \vec{v} v And w ⃗ \vec{w} w All for 0 ⃗ \vec{0} 0 when , The origin of the space is .
Of course , This also applies to three-dimensional coordinate systems .
v ⃗ \vec{v} v And w ⃗ \vec{w} w And u ⃗ \vec{u} u The vector set of all linear combinations is called “ Zhang Cheng's space ”.
版权声明
本文为[CN-Dust]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211948164878.html
边栏推荐
- [timing] lstnet: a time series prediction model combining CNN, RNN and ar
- SAP MTS/MTO/ETO专题之七:Q+M模式前后台操作
- MYSQL输入密码后闪退的解决方法
- HW-新员工考试-遍历
- ROS知识:如何实现相机接入
- PyCharm failed to create JVM
- getchar,putchar,EOF
- PostgreSql 连接访问控制
- 杰理之使用不可屏蔽中断的开关中断函数【篇】
- 80. (leaflet chapter) leaflet calls the PostGIS data layer published by GeoServer
猜你喜欢
随机推荐
PostgreSql postgres_ fdw
High end manufacturing enterprise informatization solution, predictive maintenance of industrial e-commerce platform equipment, data and system
Digital business cloud community property platform system solution - easy property management and leveraging potential business opportunities
Mysql错误2005
Considerations for index creation
MFC CComboBox 使用例子
Experience and guidance of seniors preparing for the postgraduate entrance examination of labor health and environmental hygiene of Southeast University in 2023
[netty] is it difficult to implement a redis client by yourself?
What is annotation
MySQL error 2005
2023年南开大学税务专硕考研上岸前辈备考经验指导
杰理之复位IO维持电平使用说明【篇】
redis
Building / building projects on the command line using cmake
Lenovo promises that 100% of all computer products will contain recycled plastics by 2025
nodejs笔记1
知道创宇发布重磅战略方案,构建持续交火的实战化防御体系
【2021】腾讯秋招技术岗编程 有效序列的数量
URL下载网络资源
05. Prototype mode








