NOTE: I'm a noob python programmer, i'm sure the code could be optimised. It's is available for download (and play) here: https://my.numworks.com/python/squarepoint/morpher/ Small modifications are needed if you want to execute this on your average python ide. (the ion module is for detecting the calculator's keys, and the kandinsky module is the calculator's graphic engine, you'll need to replace them with your average pygame stuff. I also made a draw_line function because the calculator doesn't have one.)
All credit goes to Dinosus for learning his math not like me. I just coded a simple python thing for you to amaze your friends at school. And no, this is not sponsored by Numworks.