This seems really basic, but I haven't found a good solution.
Let's say I have a calculus problem where the answer is 2*sqrt(2). (I do, and it's an arc length problem, but I digress.)
I would like the answer reported by WeBWorK to display as $$2\sqrt{2}$$, and not as a decimal. The problem is part of a PreTeXt book, and the answers reported by WeBWorK become the answers in the back. I can manually override the answer from WeBWorK, but only if I don't randomize the question.
I know that I can get the answer display I want using the limited radical context. But I also want students to be able to answer sqrt(8) and have it marked correct.
So maybe this is unusual in that I don't care how the answer is entered by students; what matters to me is how the answer is displayed when WeBWorK reports back the correct answer. Is there a way to accomplish this?