In a math book four methods are written for testing parallelity/orthogonality of two vectors that are(notice $\vec v$ and $\vec w$ are approximations of vectors and we have x,y and z components of them and also $ Approx(Expression) $ means Approximated value of Expression):
if $ (Approx(\left\lvert v⃗ .w⃗ \right\rvert) < Approx(threshold)) $ then (vectors are assumably orthogonal))
if $ (Approx(\left\lVert v⃗ ×w⃗ \right\rVert) < Approx(threshold)) $ then (vectors are assumably parallel)
Now it seemed right to me until I saw another approach:
if $ (Approx \left(\frac{ \left\lvert v⃗ .w⃗ \right\rvert }{ ∥v⃗ ∥×∥w⃗ ∥ } \right) < Approx(threshold)) $ then (vectors are assumably orthogonal)
if $ (Approx \left (\frac{ \left\lVert v⃗ ×w⃗ \right\rVert }{ ∥v⃗ ∥×∥w⃗ ∥ } \right ) < Approx(threshold) ) $ then (vectors are assumably parallel)
Now $ \theta $ being the angle between $ \vec v $ and $ \vec w $ that are approximations of our vectors You can notice in the second approach what is calculated is approximation of cosθ or sinθ but in book's approach it is approximation of $ ∥v⃗ ∥×∥w⃗ ∥ × $ ( cosθ OR sinθ ) hence I immediately sensed there might be something wrong with book's approach, so do you also think the book's approach is flawed?
So I found out what exactly is very wrong with approach of the book, I'll explain it regarding first method and analysis of others is similar. To test orthogonality of vectors we can check if condition $ \left\lvert \cos\theta \right\rvert < OurThreshold $($ \theta $ being the angle between $ \vec v $ and $ \vec w $ that are approximations of our vectors) named condition_2 is true, so lets note these two facts( Approx(Expression) means Approximated value of Expression and in each side of Inequation $ Approx(Expression)+Error=ExpressionRealValue $):
We Remove errors from expression_1 so it becomes: $$ Approx(\left\lvert \vec v . \vec w \right\rvert) < Approx(\left\lVert \vec v \right\rVert \times \left\lVert \vec w \right\rVert \times OurThreshold) $$
Now if condition_1is true then we assume condition_2 is true and so vectors are assumably orthogonal.
In the book's approach threshold is considered to be an arbitrary small positive value and we name this threshold "BookThreshold", the condition in first method of the book's approach: $$ Approx(\left\lvert \vec v . \vec w \right\rvert) < Approx(BookThreshold) $$ is equivalent to condition: $$ Approx(\left\lvert \vec v . \vec w \right\rvert) < Approx(\alpha \times \left\lVert \vec v \right\rVert \times \left\lVert \vec w \right\rVert \times OurThreshold) $$ So noticing that additional $ \alpha $ value it's obvious checking conditions of book's approach doesn't do us any good