Use Your Own Function
Now that you've made your own function, use it! Type
(1.5,f(1.5))
to use the function and plot the result as a input/output pair point.As you can see the code plots the point
(1.5,2)
because f(1.5)=2*1.5-1=2
. In other words (1.5,2)
is an input/output pair of the function f
. Now of course you could have done this without a function, but that's not the point. The point here was to see a function in action that you made! Nice job!
One thing to note: if you type the code (1.5,f(2))
this will NOT plot a point on the function because it is NOT an input/output pair of f
. To plot points on any function (including this one) you always need to type code such as (#,f(#))
where you put an actual number in place of "#
", and you must use the same number in both places.Quick Check: What's f(5)
?
Advanced Question: What value of x
would make f(x)
equal to 11?
Move on to the next activity to continue looking at the function you made.