# Trig Functions - Not being recognized as solutions

**URL:** <https://cl.desmos.com/t/trig-functions-not-being-recognized-as-solutions/850>\
**Category:** Questions\
**Created:** [April 16, 2020, 10:23pm UTC](https://cl.desmos.com/t/trig-functions-not-being-recognized-as-solutions/850 "2020-04-16T22:23:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Burf](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/dan_burf/32/652_2.png) [@Dan\_Burf](https://cl.desmos.com/u/Dan_Burf)\
**Post date:** [April 16, 2020, 10:23pm UTC](https://cl.desmos.com/t/trig-functions-not-being-recognized-as-solutions/850/1 "2020-04-16T22:23:46Z")

</div>

I am trying to set up a script which has a trig function as its solution. I have the correct notation for displaying the question, but I cannot get the latex input to match my desired solution. I have tried pretty much every variation of inputs and am not sure how to get sin theta as the correct input.

solution = “`\sin\\theta`”  
content:  
when e1.timeSinceSubmit\>0  
when e1.latex = solution “Correct!”  
otherwise “Please try again!”  
otherwise "Simplify `\sin^{3}\\theta \ +\ \sin\\theta \cos^{2}\\theta`"

---

<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:** [April 17, 2020, 4:33pm UTC](https://cl.desmos.com/t/trig-functions-not-being-recognized-as-solutions/850/2 "2020-04-17T16:33:52Z")

</div>

Type it into a graph, then copy-paste into your CL. Finally, turn single backslashes to double backslashes.

Although matching latex is tricky, check out this thread…

> [@Comparing latex values](https://cl.desmos.com/t/comparing-latex-values/63):
>
> I’m getting confused on what the CL views as the latex for an expression entered as |x-1|=3. Can I use that as a string to determine if that is what they’ve entered or is the CL looking for “\left|x-1\right|=3” or something else entirely? What I’m trying to use this for is with marking something correct in the dashboard. I saw some other questions related to this but what I’m really looking for to be cleared up is what string exactly does .latex return from a student input to background CL oper…
