Project Euler 296 - Angular Bisector and Tangent

Official link: https://projecteuler.net/problem=296

Note: My code takes around ~840s, ~90s with pypy