Basis
In maths, a set of vectors in a vector space is called a basis if every element can be written as a linear combination of the basis vectors. The coefficients are the components or coordinates of the vector. A basis B for ℝ n is defined as a set of linearly independent vectors that spans the entire space. The vectors in the basis are frequently the standard unit vectors, represented as e 1 , e 2 , …, e n , where each vector has a single component equal to 1, with all other components set to zero. Any vector w in ℝ n can be expressed as a linear combination of these basis vectors. Any basis for ℝ n must have exactly n elements. The standard basis in ℝ 3 consists of three vectors: In Pyton we can represent these using NumPy array: import numpy as np # Standard basis vectors in R^3 e1 = np.array([1, 0, 0]) e2 = np.array([0, 1, 0]) e3 = np.array([0, 0, 1]) # Display the basis vectors print ( "Standard Basis Vectors in R^3:" ) print ( "...