I am attempting to check if a student enters the correct response for a pythagorean theorem problem. Right now I am using the code:
This code works fine if the answer is a perfect square! It does not work if the answer is irrational . Suggestions on how I can handle this? I would like it to tag the answer as correct if the student enters the EXACT value as a square root into the input box.