1. Find isOrthogonal(A,B)
`A=(3,4,0)`,`B=(-4,3,2)`
Solution:
Here `vec A=(3,4,0),vec B=(-4,3,2)`
Two vectors `vec A` and `vec B` are orthogonal, if their dot product is zero. i.e. `vec A * vec B = 0`
1. Calculate dot product
`vec A * vec B`
`=A_1*B_1 + A_2*B_2 + A_3*B_3`
`=3*(-4) + 4*3 + 0*2`
`=-12 + 12 + 0`
`=0`
Here dot product is zero, so vectors are orthogonal
2. Find isOrthogonal(A,B)
`A=(3,4)`,`B=(-4,3)`
Solution:
Here `vec A=(3,4),vec B=(-4,3),vec C=(3,4)`
Two vectors `vec A` and `vec B` are orthogonal, if their dot product is zero. i.e. `vec A * vec B = 0`
1. Calculate dot product
`vec A * vec B`
`=A_1*B_1 + A_2*B_2`
`=3*(-4) + 4*3`
`=-12 + 12`
`=0`
Here dot product is zero, so vectors are orthogonal
This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then