Nearly all photons emitted after Big Bang (in digit quant called BitBang) are now visible only at far-infrared wavelengths. This includes light from the cold universe of gas and dust from which stars and planets form, as well as faint signals from distant galaxies tracing the universe’s evolution to today.

To really peer into the cold universe, you need a large telescope cooled to near absolute zero, flying above Earth’s atmosphere. We just calculate the length of a vector by points.

Lets jump down from Big Bang to a Vector, which for me is a building block of the universe. Create a function/use an in-built function, to compute the dot product, also known as the scalar product of two vectors.

A vector has magnitude (how long it is) and direction: They can be multiplied using the “ Dot Product “:

Now we want a result as a scalar. We can calculate the Dot Product of two vectors this way:
a · b = | a| × | b| × cos(θ)

If they point in the same direction we don’t need the cos():

So our dot product (scalar) is 3. What about the norm vector?:

And the result is astonishing, the norm length vector has float as number but the square vector is of integer (35 and 21) cause sqr is in opposite to sqrt:

the norx0 length1: 5.91607978309962 is length by coordinates
the nory0 length2: 4.58257569495584 is length by coordinates

Suppose A and B are two matrices such that the number of columns of A is equal to number of rows of B. Say matrix A is an m×p matrix and matrix B is a p×n matrix. Then the product of A and B is the m×n matrix whose ij-entry is obtained by multiplying the elements of the ith. row of a by the corresponding elements of the jth. column of B and then adding them.

It is important to note that if the number of columns of A is not equal to the number of rows of B, then the product AB is not defined as specified.

To calculate a normalized vector, we must first have the original vector components, then use them to get the length of the vector. We then divide each of the vector components by this length to get the normalized vector components which form the normalized vector in which the sum of the squares of all coordinates is equal to 1. So the Dot Product gives a scalar (ordinary number) answer, and is sometimes called the scalar product.

Calculating the length of the vector by points

Originally published at on December 12, 2020.

Max Kleiner's professional environment is in the areas of OOP, UML and coding - among other things as a trainer, developer and consultant.