Checking value entered in a table

I want students to decide which trig function to use and enter that into the table and then evaluate the value. Here is the CL that I have:

correct: this.cellContent(1,1)=“tan” and this.cellNumericValue(1,2)=8.39

The CL works if I changed tan to be tac, but it will not work for the tan because it recognizes it as a math function. I cannot figure out how to format the CL properly for it to work.

If you’re checking a latex string you need to copy exactly what the student will enter as it appears in the table, my guess is it’ll look something like “\tan”, which would change your correctness to:

correct: this.cellContent(1,1)=“\\tan” and this.cellNumericValue(1,2)=8.39