I tested Excel, and even early versions can calculate Rule 124. Now I have loaded it down with rotating a right triangle in 1/n radians. ( The right triangle has sides e+1/Pi and Pi+1/e. )...

Maybe your spreadsheet will do better?