- Joined
- Dec 23, 2013
- Messages
- 8,113
- Reaction score
- 5,574
I posted my answer on OT and saw you mention SBOT. I see that there's some reward so I thought I'd post it here as well:
Points:
p=(u+v)/2 - i * (v-u)/2
q = (v+w)/2 - i*(w-v)/2
r = (w+z)/2 - i *(z-w)/2
s = (z+u)/2 - i * (u-z)/2
Line segments:
p-r = (u+v-w-z)/2 - i (-u+v+w-z)/2
q-s = (-u+v+w-z)/2 - i (-u -v+w+z)/2
Line segments are equal length and perpendicular:
p-r = (u+v-w-z)/2 - i (-u+v+w-z)/2 =- i*[i*(u+v-w-z)/2+(-u+v+w-z)/2]=-i*[(-u+v+w-z)/2-i*(-u-v+w+z)/2] = -i*(q-s)
(p-r)/(q-s) = -i, and are therefore perpendicular.
As well, |p-r|=|-i|*|q-s| = |q-s| and therefore have equal length.
The problem is pretty fun and geometric if you know your complex geometry.
Edit: Fixed some negative signs.
Points:
p=(u+v)/2 - i * (v-u)/2
q = (v+w)/2 - i*(w-v)/2
r = (w+z)/2 - i *(z-w)/2
s = (z+u)/2 - i * (u-z)/2
Line segments:
p-r = (u+v-w-z)/2 - i (-u+v+w-z)/2
q-s = (-u+v+w-z)/2 - i (-u -v+w+z)/2
Line segments are equal length and perpendicular:
p-r = (u+v-w-z)/2 - i (-u+v+w-z)/2 =- i*[i*(u+v-w-z)/2+(-u+v+w-z)/2]=-i*[(-u+v+w-z)/2-i*(-u-v+w+z)/2] = -i*(q-s)
(p-r)/(q-s) = -i, and are therefore perpendicular.
As well, |p-r|=|-i|*|q-s| = |q-s| and therefore have equal length.
The problem is pretty fun and geometric if you know your complex geometry.
Edit: Fixed some negative signs.
Last edited: