# New to CL: feedback using sqrt as an input

**URL:** <https://cl.desmos.com/t/new-to-cl-feedback-using-sqrt-as-an-input/3528>\
**Category:** Questions\
**Tags:** dashboard, patterns, validation, correctness\
**Created:** [July 7, 2021, 3:09am UTC](https://cl.desmos.com/t/new-to-cl-feedback-using-sqrt-as-an-input/3528 "2021-07-07T03:09:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GamaEuler](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/gamaeuler/32/3251_2.png) [@GamaEuler](https://cl.desmos.com/u/GamaEuler)\
**Post date:** [July 7, 2021, 3:09am UTC](https://cl.desmos.com/t/new-to-cl-feedback-using-sqrt-as-an-input/3528/1 "2021-07-07T03:09:23Z")

</div>

I’m trying to get some feedback for when the answer to the question is 3sqrt(2). I was able to get the “checkmark” to appear in my dashboard, but on the “feedback” note, I am not able to have the correct feedback appear.

Here is the coding for the feedback note:

problem = input6  
answer= “`3\sqrt{2}`”  
studentAnswer = problem.latex  
content: when (studentAnswer=answer and problem.submitted)“Your answer is correct. Move on to the next slide.”  
when (problem.submitted)“Please try again”  
otherwise""

For this question, I want the student to enter exactly 3sqrt(2).

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [July 7, 2021, 4:12pm UTC](https://cl.desmos.com/t/new-to-cl-feedback-using-sqrt-as-an-input/3528/2 "2021-07-07T16:12:06Z")

</div>

Try using backticks (next to the 1 key) for `answer` instead of quotation marks if you haven’t already. Also, looks like maybe you’re missing a space before all your opening quotation marks. You can share your activity for more accurate assistance.

---

<div class="post-metadata">

**Author:** ![cwinske](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/cwinske/32/3106_2.png) [@cwinske](https://cl.desmos.com/u/cwinske)\
**Post date:** [July 7, 2021, 8:00pm UTC](https://cl.desmos.com/t/new-to-cl-feedback-using-sqrt-as-an-input/3528/3 "2021-07-07T20:00:29Z")

</div>

Since trying a latex match isn’t preferred, you could try to use a pattern match.

```auto
problem = input6

answer = patterns.product(p.number.satisfies("x=3"), patterns.radical(patterns.number.satisfies("x=2"))).strictOrder.matches(problem.latex)

content: when answer and problem.submitted "Your answer is correct. Move on to the next slide."
when problem.submitted "Please try again"
otherwise ""

```
