Basic operations of vectors

Source: Internet
Author: User
Tags square root

Negative vector operation: (take all the numbers in a vector negative)

[ -1,-2,-3]

Negative vector interpretation in geometry:

==============================================================================

Vector modulo: (length of the orientation amount)

2D vector Length:

3D vector Length:

[x, Y, z] seeking length = | |  [x, Y, z] | | = square root (x ^ 2 + y ^ 2 + z ^2)

addition and subtraction of vectors:

[+] + [2,3] = [3,5] A + B! = Two total lengths of vectors

[1,2]–[2,3] = [ -1.-1]

dot multiplication of vectors:

[To] * [2,3] = [2,6]

Function: Usually used to calculate the angle between two vectors (A),

A=90° Vectors perpendicular to each other
0°≤a < 90° Vector in the same direction
90°< a≤180° Vectors in the opposite direction

================================================================================================

Cross-multiplication of vectors: formula for (3D) vectors

The function of a vector:

1. The result of the two vector fork multiplication is a new vector perpendicular to (a, B)

2. The area of two vectors can be obtained

Basic operations of vectors

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.