I am trying to create an activity for evaluating trig ratios with the unit circle. I want students to type in an answer like sqrt(3)/2 with a math input and have them see if they have the correct answer. I would also like them to be able to get the correct answer for inverse trig ratios where they would use a math type to get pi in their answer.
I have attached where I have made it to with the activity, but the only way I could get it to work is having students type in the decimal approximation. My programming skills are minimal and I am just trying to work through it with examples I have found on the internet to mimic. Any help would be appreciated!
If you’re comparing non-terminating decimals, you’ll need to round student input if they put it in radical form or check that it falls between to values. If you want radical form and not the decimal, you can use countNumberUsage.
In trig1:
check= this.numericValue<0.867 and
this.numericValue>0.865 and
countNumberUsage(this.latex,3)=1 and
countNumberUsage(this.latex,2)=1
correct: check
In your note, replace trig1.numericValue=0.866 with: trig1.script.check
Thank you. I got that question to work. Here is my thinking on how to use that pattern, but am having trouble getting it to continue. I’m guessing I am not understanding the countNumberUsage.
By replacing the trig1.script.check into the spot where trig1.numericValue=0.866 I should only need to worry about adjusting the math input for each question.
For an answer of sqrt(2)/2 I came up with this:
check= this.numericValue<0.708 and
this.numericValue>0.706 and
countNumberUsage(this.latex,2)=1 and
countNumberUsage(this.latex,2)=1
correct: check
For an answer of -sqrt(3)/3 I came up with:
check= this.numericValue<-0.576 and
this.numericValue>-0.578 and
countNumberUsage(this.latex,3)=1 and
countNumberUsage(this.latex,3)=1
correct: check
I was thinking that the first countNumberUsage was the numerator inside a radical and the second countNumberUsage was the denominator, but that doesn’t seem to work.
I was thinking I would have to account for pi in the solution, but it doesn’t matter. You only have to account for the countNumberUsage! Daniel, I really appreciate the help. The link at the top should have the code in it for others to see.
Hi Daniel- So I tried using Jared’s code and your fixes to help with an assignment of my own where students will occasionally need to input radical answers, only on slides 3 and 5. I feel like everything in my coding is correct, but there must be some issue because on slides 3 & 5, when I input the solutions of 88sqrt3 and 300sqrt3 (respectively), it is still saying wrong answer… maybe I am just making some basic mistake or missing something else that you’ve already said above, but any insight you could provide would be most helpful!
Here is my assignment:
Hello. I am trying to use these notes to check answers for log equations. This is how far I have gotten. I can’t seem to figure out how to get a “correct” message when students enter the correct expression log_5(48) in screen 2.