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.
You can either round both the answer and the key to a few decimal places or check for exact latex if you are concerned about simplest radical form. Both methods have advantages and drawbacks
Thanks Jay. What is the best way to round values in CL? I assume its simpleFunction but that does not seem to work. I am using this set of commands to first calculate the answer and then round that answer. I copied the Latex for the round command directly from Desmos.
I am trying to have the students find the percent error of a number and then it tell them if they are correct. I am missing the coding for determining if the student is correct and any help in this area would be awesome.