Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

jjuice's blog

By jjuice, history, 8 years ago, In English

I was trying to solve a problem which involved covering a given arc by minimal side of a square. I came to the conclusion that I had to write the equation of the arc, however it posed a great deal of difficulty to me. Kindly help. Thank you

  • Vote: I like it
  • -4
  • Vote: I do not like it

| Write comment?
»
8 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Lets say the points have coordinates (x1,y1),(x2,y2),(x3,y3).
Assume, center of circle has coordinates (x0,y0) and radius r. Now, as the points are on circle,
(x0-x1)^2 + (y0-y1)^2 = r^2
(x0-x2)^2 + (y0-y2)^2 = r^2
(x0-x3)^2 + (y0-y3)^2 = r^2 Now try to do something with these equations.