MathML HTML

The Dot Product Angle Formula

This is the formula for caclulating the angle between two vectors, using the dot product.

DotAngle.html

<!doctype html>
<html>
  <head>
    <title>XoaX.net's MathML: The Dot Product Angle Formula</title>
  </head>
  <body>
    <p>
      The dot product of two vectors equals
      <math>
      	<mrow>
      		<mover>
      			<mi>u</mi>
      			<mo mathsize="50%">&rarr;</mo>
      		</mover>
      		<mo>&sdot;</mo>
      		<mover>
      			<mi>v</mi>
      			<mo mathsize="50%">&rarr;</mo>
      		</mover>
      	</mrow>
      	<mo>=</mo>
       	<mrow>
       		<mtext>&Vert;</mtext>
      		<mover>
      			<mi>u</mi>
      			<mo mathsize="50%">&rarr;</mo>
      		</mover>
      		<mtext>&Vert;</mtext>
      		<mtext>&Vert;</mtext>
      		<mover>
      			<mi>v</mi>
      			<mo mathsize="50%">&rarr;</mo>
      		</mover>
      		<mtext>&Vert;</mtext>
      		<mtext>&nbsp;</mtext>
      		<mi>cos</mi>
      		<mtext>&nbsp;</mtext>
      		<mi>&alpha;</mi>
      	</mrow>
      </math>,
      where <math><mi>&alpha;</mi></math> is the angle between the vectors
      <math><mover><mi>u</mi><mo mathsize="50%">&rarr;</mo></mover></math> and <math><mover><mi>v</mi><mo mathsize="50%">&rarr;</mo></mover></math>.
    </p>
  </body>
</html>
 

Output

 
 

© 2007–2025 XoaX.net LLC. All rights reserved.