Self Checking Table- in respect to y!

Hi Everyone,

I’m trying to create an activity where students break down the problem prior to actually evaluating. I’ve run into a problem, for this problem I’m integrating with respect to y, so my equations are x=… and I can’t get the table to recognize the correct functions? Any Advice?

I’m on slide 8 of this activity. Area Between Two Curves Practice • Activity Builder by Desmos

Here is the code I have written. I’ve tried switching the x and y values, using only one check point, but nothing seems to help.
#tablevalues
a1=Table8.cellContent(1,2)
a2=Table8.cellContent(2,2)
a3=Table8.cellContent(3,2)
a4=Table8.cellNumericValue(4,2)
a5=Table8.cellNumericValue(5,2)
a6=Table8.cellContent(6,2)

checkf1=simpleFunction(a2).evaluateAt(1)=-3

checkf2=simpleFunction(a3).evaluateAt(-2)=-4

checkf3=simpleFunction(a6).evaluateAt(3.4)=-3.2

cellSuffix(1,2):
when a1=“y” “:grin:
otherwise “:cry:

cellSuffix(2,2):
when checkf1 “:grin:
otherwise “:cry:

cellSuffix(3,2):
when checkf2 “:grin:
otherwise “:cry:

cellSuffix(4,2):
when a4=-3 “:grin:
otherwise “:cry:

cellSuffix(5,2):
when a5=-2 “:grin:
otherwise “:cry:

cellSuffix(6,2):
when checkf3 “:grin:
otherwise “:cry:

Thank you in advance!

simpleFunction automatically does in terms of x, but you can specify with another parameter, so your checkf1 could look like this:

checkf1=simpleFunction(a2,"y").evaluateAt(1)=-3

1 Like

IT WORKED!! I still had to switch the evaluateAt( ) numbers, which makes sense.

Thank you so much!!