How do I code the graph component to show a vertical line the students type in the input component?
In the graph script:
function("f"):simpleFunction(expression.latex,"y")
and then make sure you put x=f(y) in the graph
Another way would be to make a number, say “A” from the expression numeric value and then graph x= A in the graph
Now, how can I take what they typed in the “expression” input component to show on a different screen…?
It works the same way, just put that script into whichever graph you need.
Got it. If you want to display the expression as entered you would use the .latex source. Over all:
content:"`${expression.latex}`"
Don’t forget the backticks if you want to display as math
Same, put it in back ticks. If it still comes out funny you can always type it into the calculator and copy/paste into the note (still need back ticks). The only change is you need to double up on the slashes.
Don’t forget the back ticks
Where do I place the back ticks…it doesn’t seem to be changing the quadratic into function script. (The back ticks are appearing)
You may have one too few or one too many. Here: format as math • Activity Builder by Desmos




