Students enter exponential equations in a table based on the given transformation of the parent y=2^x.
For example - steeper than the parent - students enter an equation of the form y=a * 2^x

To verify it is correct, the cl should check if |a| > 1 and if the equation is exponential. How could you verify if it is exponential? The table shows correct for entering y=8. Is there a simple way to check?

Here is my code.
cellDisableEvaluation(1,2): true
cellDisableEvaluation(2,2): true
cellDisableEvaluation(3,2): true
initialCellContent(1,2): y=
initialCellContent(2,2): y=
initialCellContent(3,2): y=

Thank you, I guess using the derivatives is best option here. I have to look into coding the derivatives and unfortunately time is not on my side. Any help with this would be great. If not, no problem I can understand.

This will check if latex contains an exponential anywhere in a the latex, just change this.latex to your individual cells. You could check that the whole entry has a more specific format though.

You can use patterns to do this more simply, especially since you have a simple pattern of ab^x. You can then extract a and b and just check their values as needed, as well as verify that the student input is in the correct exponential form. Here is an example:

It worked!! Thank you so much for helping a teacher!! Much appreciate your help.

For now, I am just checking if it has an exponential in the latex. I will try to match the whole entry for y = a b^(x-h) + k on another slide.This is good and usually my students will tell me if the code breaks.

I did not know the graph component could be used to compute the ratio. I was thinking of coding in the math component and got stuck. I learned something new. Thank you so much!