I would like to pass a function to a Graph from a table component. Each line is a different function.
Is it possible and how?
Thanks
Itzik
I would like to pass a function to a Graph from a table component. Each line is a different function.
Is it possible and how?
Thanks
Itzik
In your Graph CL, put something like this:
rawExpression("a"):T1.cellContent(1,1)
rawExpression("b"):T1.cellContent(2,1)
rawExpressionColor("a"): "grey"
rawExpressionColor("b"): "blue"
rawExpression was deprecated, but left so prior activities don’t break.
@Itzik.M_Ort
If they’re in function form, in the graph CL, simply use:
function(`f`): simpleFunction(tableName.cellContent(1,1))
This will accept y=
, function form, or just an expression.
If you want it graphed, in the actual graph add:
y=f(x)
Functions need unique names. You can choose the color of your functions by defining f(x)
, selecting the color for y=f(x)
, then deleting the dummy f(x)
.
Hello Susan and Daniel
I’ve tried the “simplefunction” but it didn’t work. I’ve notice two differences.
Thanks for your proffetional support which make Desmos my preferable platform.
Itzik.
בתאריך יום א׳, 31 בינו׳ 2021, 19:25, מאת Daniel_Grubbs via Desmos Activity Builder Support <desmos@discoursemail.com>:
I’m not sure without a looking into the code in your activity (which you can share), but…
simpleFunction defaults to in terms of x, so adding the second parameter is not wrong, it’s just unnecessary.
I’m not entirely sure the why. I know that if you have just f(x)= in the graph, it will not graph it. Adding y=f(x)
just ensures that it is graphed. Similarly, 0=f(x,y)
for a difference function (handy if you expect vertical lines as a possible entry).