I want to have students type expressions into a table and be able to plot these on a graph.
I had previously found a way to do this using rawexpression, but in looking for some information saw answers indicating that rawexpression is deprecated and simplefunction should be used instead.
How do I use simplefunction to take an expression from a table and plot it on the graph?
The students could enter a domain in the table which would be concatenated with the x^2 so that the graph would graph the function over their specified domain.
For example, the student enters “{3<x<5}” and the graph would plot x^2 over that domain.
I have been working with rawExpression anyways because I don’t want students typing bounds in separately as if they’re just filling in a table but want them to be getting used to listing the bounds the way that they would in a piecewise function. Thus I have:
This draws an expression like x^2 from the left column of the table and concatenates it with the domain given in the right hand column so that the calculator is fed something like, “x^2{2 < x < 5}”
Right now they would be entering the right hand column exactly as it would appear in the calculator: “{2 < x < 5}”. This works perfectly.
However, I would really rather they just be able to type “2 < x < 5” in (so that they don’t get in the habit of nesting a bunch of { } in piecewise function definitions) and to fill in the { }{ in the script itself. I have tried putting \left{ and \right} as a part of the string:
Thanks! I was copying the latex from the calculator so I thought that would work.
As for using rawExpression, I’m perfectly happy to use a better method if anyone an suggest one. I am trying to put something together for practicing with piecewise functions, and I don’t want to have kids just plugging individual bounds in fields. If I say to them, “graph |x| but only do it when x is more than 5,” they get it. Their problem is looking at the big picture where you have a several different expressions each with it’s own set of bounds with compound inequalities and all, that’s the problem, so I want them to be able to, as far as possible, enter stuff that looks like it’s supposed to (although I do want the expressions to be separate from the bounds).
If there is a better way to do that, I am happy to learn.