Orthonormal vector
A two vectors can be orthonormal to one another in other words, These vectors are perpendicular to each other and also their vector length equal to 1. To detect whether these two vectors are orthonormal or not , the vectors inner-product and vector length are used. If the result the inner-product is 0 (zero) and norm is 1 (one), the two vectors are orthonormal , otherwise not. Vector X Vector Y Vector Inner Product Vector norm or length Java code - Orthonormal The following Java code finds two vectors X and Y are orthonormal or not to each other by inner-product and norm of these two vector. A vector is defined in Java program by a integer array or a double array. Vector X = [1, 0] Vector Y = [0, 1] find inner product of vector X and Y X.Y = 0 find norm of vector X |X| = 1 find norm of vector Y |Y| = 1 if |X| = 1,|Y| = 1 and X .Y = 0 vector X and Y are orthonormal imp...