A project that can help you with your geometry homework. I do not advise using this on tests.
This project was tested several times. Update 1: Made it so that fractions get simplified. I used 10-year-old code from @cpumaster930.