Sunday, August 7, 2016

How to Draw the Olympic Rings Mathematically?


Inequalities (Relations) for the Olympic Rings:

  1. (Blue Ring)  min(max(R1(x,y), -y), max(R1(x,y), y, -R4(x,y))) < 0
  2. (Black Ring)  min(max(R2(x,y), -y, -R4(x,y)), max(R2(x,y), y, -R5(x,y))) < 0
  3. (Red Ring)  min(max(R3(x,y), -y, -R5(x,y)), max(R3(x,y), y)) < 0
  4. (Yellow Ring)  min(max(R4(x,y), -y, -R1(x,y)), max(R4(x,y), y, -R2(x,y))) < 0
  5. (Green Ring)  min(max(R5(x,y), -y, -R2(x,y)), max(R5(x,y), y, -R3(x,y))) < 0

Functions:
  • R1(x,y) = (sqrt((x+2d)² + (y-h)²) - a)² - b²
  • R2(x,y) = (sqrt(x² + (y-h)²) - a)² - b²
  • R3(x,y) = (sqrt((x-2d)² + (y-h)²) - a)² - b²
  • R4(x,y) = (sqrt((x+d)² + (y+h)²) - a)² - b²
  • R5(x,y) = (sqrt((x-d)² + (y+h)²) - a)² - b²

Constants:
  • a = 49.25
  • b = 4.75
  • d = 58.5
  • h = 25

Download Examples:


( Mathematical softwares used: Graph, gnuplot )

No comments:

Post a Comment