I like your trigonometric solution.Accordingly, I have included the foregoing in my solution.
blackjack
flooble's webmaster puzzle