Using Multiple Choice to toggle functions graphed

Hi, I am trying to use check boxes to let students show/ hide functions. I think I have the CL started, but don’t know how to name the functions in the CL so that they correspond to what is in the graph. I am using the check boxes so they can have more than one function show up at a time. Even Odd Toggle Graph • Activity by Amplify Classroom

I found the problem… for function1 etc. all you are doing is defining a STRING, not FUNCTION that contains your definition. Also, f1 in function(“f1”) is not valid latex (you need f_{1}). Here’s the fix (do for every other one):

function1 = when evenodd.isSelected(1) simpleFunction(“x^5+5x^3-2x”, “x”) otherwise simpleFunction(“”)
#later...
function("f_{1}"): function1

Another thing I must clarify is that evenodd.isSelected(5) doesn’t exist. Are you planning on to add more?

2 Likes

That all worked, thank you. I did add a line in my graph for function 5.

Okay. You are very welcome, glad I helped :smiley:

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