A Little Code To Start

To get started, let's review functions from the previous chapter. Check out this description of a function in plain English:[br][code][br]The function f does the following with any number that is input: square the input, set aside; double the input, set aside; add the two numbers from the previous calculations; return the resulting number as the output of f.[/code]
Quick Check: What's [code]f(1)[/code]?
The algebraic code for the above English description is [code]f(x)=x^2+2x[/code]. I've already typed this code in for you in the applet below.[br][br]I've also created a variable [code]h[/code] (currently set to 0.1, but you can change it) for you to use (you'll see why soon). [br][br]To get started, type the following into the input bar:[br][br][code](x(A)+h,f(x(A)+h))[/code][br][br]Careful with parentheses! Even though this looks weird, this will create a point on the function because this will be an input/output pair.
Go to the next activity to verify you've done it correctly.
Close

Information: A Little Code To Start