You might consider posting what you've got to
Code Review to get feedback - there are a lot of things that could be improved upon. Generally
eval
is not such a good idea - you can enter weird things like
insert a: __import__("sys").stdout.write("consider your computer compromised")
. (Also,
ax+by+c=0
looks like the equation of a line to me
:)
). Mathematically, I'm not sure what you're trying to achieve. Why turn things into floats if you want to do exact computation? Better to keep things as fractions or integers in my opinion. —
Izaak van Dongen 1 min ago