Updated! Issue has been solved!
Link to my activity
On my slide 11 I am trying to figure out how to write the CL so that it will tell me if I am correct when using x and y variables. Currently it only works for one variable. Any ideas or somebody who knows the coding better than me.
You will need to tell simpleFunction that it needs to consider x and y variables:
g1=simpleFunction(`6x^{3}-9x^{2}+2xy-3y`,`x`,`y`)
…
fn = simpleFunction(currentCell,`x`,`y`)
then your evaluates will also need two inputs:
g1.evaluateAt(-3,-5) = fn.evaluateAt(-3,-5)
Then you’ll need to change expressionMatch. I can’t really tell what specifically that’s looking for at the moment - what form do you want the final answer to take?
1 Like