📐 Cosine Similarity Calculator

Measure the cosine of the angle between two vectors in high-dimensional space.

Similarity Calculator
Enter vector components to calculate cosine similarity and distance.
0.0000
0.0000

Calculation Details:

Dot Product (A·B): 32.0000
Magnitude of A: 3.7417
Magnitude of B: 8.7750
Similarity = 32.0000 / (3.7417 × 8.7750) = 0.0000
About Cosine Similarity

Cosine similarity measures the cosine of the angle between two vectors, focusing on orientation rather than magnitude.

Formula:

cos(θ) = (A·B) / (||A|| × ||B||)

Range: -1 to 1
1: Identical direction
0: Orthogonal (90°)
-1: Opposite direction

Use Cases
  • • Document similarity in text mining
  • • Recommendation systems
  • • Image recognition and comparison
  • • Natural language processing
  • • Collaborative filtering
  • • Gene expression analysis