PROJECT EULER · #0786
Billiard
The following diagram shows a billiard table of a special quadrilateral shape.
The four angles
The diagram on the left shows the trace of an infinitesimally small billiard ball, departing from point
The table has no friction and all bounces are perfect elastic collisions.
Note that no bounce should happen on any of the corners, as the behaviour would be unpredictable.
Let
For example,
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.