CL for entering an answer in a simplified square root. Ex. sqrt(13)

I am trying to make a slide that requires my kids to type their answer in as a simplified square root like sqrt(13). I want the slide to also tell the student if their answer is right or wrong. I know I need a math response box for the answer and need a note box for the feedback. I’ve tried typing in coding from other questions that people have posted but it isn’t cooperating.

My math response box is labeled side1 and the picture is what the slide would look like in student view.

Math Box below:

Note Box below:

All I want my kids to do is enter the answer as a simplified radical and check it for me. If they get it right, I want them to get the “CORRECT!” message and the “Not quite” message if it’s wrong.

What are you trying to test for with the countNumberUsage bit? Essentially at the moment, this is checking for one instance of the number 4 and one instance of the number 3, neither of which is true when a student inputs sqrt(13). More likely you just want countNumberUsage(side1.latex,13)=1.

Reducing radicals automatically is actually a bit complicated I think. I made a template you can use here either for a single problem style (screen 1) or if you have a table of problems (screen 2). Let me know if you have questions about how it works or how to adapt it.
reducing radicals • Activity Builder by Desmos Classroom

I tried the change but no matter what I enter it gives the “Not quite, try again message” so I think it might have something to do with the check and feedback?

Yeah, I’d definitely need help adapting it.

Sure - post a link with your slide set up the way you want and I can add in some code.

Thank you! Lol, coding is just not a language I can really grasp.

If you can grasp math, you can grasp coding! Just takes practice.

Ok, I took your activity, and added in code to do what you want. I also put in a table on the summary screen that pulls their entered values. You can just delete that if you don’t want it.

I made a second problem. It’s pretty easy to make new problems by copy/paste, but there are a couple of details to change. In the first screen I wrote out directions. Let me know if anything is not clear.

2 Likes

That is amazing! Thank you so much! Lol, you just became my new best friend for coding. :joy:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.