Graph.function [sink]

I’m trying to get set the slide to accept an equation from the student and put it on the graph. I’ve entered the function sink just like the example but it is not working.

function(“f”): simpleFunction(equationInput.latex, “x”)

Am I missing something?

The Graph component named: equationGraph
and has the following code in the </>

“# Get the latex string from “equationInput” and assign”
“# it to f in the calculator.”

function(“f”): simpleFunction(equationInput.latex, “x”)

The # are comments and desmos ignores them the only line that matters is

function(“f”): simpleFunction(equationInput.latex, “x”)

Desmos uses this to create a simple function in terms of x, and the equationInput.latex

is what it uses to create the simpleFunction.

Since the Math Response component is named equationInput it finds the math expression there, my guess is for your case the Math Response has been renamed something else so desmos cannot find equationInput.

Here is a screen shot of what I have so far. Also included the function line from </> screen.

function(“f”): simpleFunction(equationinput.latex, “x”)

If you send a link to the activity, it would be easier to troubleshoot.

Here is the link.

Thank you!


Here is the link to the activity. I’m still playing with it.

Thanks for your help.

You need to have an existing function named f(x) inside the graph component for this to work.

For example, one line 1 write:
f(x) = x
this defines f(x) but the = x part will be overwritten by your CL code.
Make sure to unclick the dot next to it.

Then in line 2 write:
y = f(x)
and format that line how you like.

Here is how this can look: [Copy of] Exponential Functions • Activity Builder by Desmos