Notes and Code | Outcome | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Distance between points on the line.Find the straight line distance between the points on the line when:
|
Output
|
||||||||||||||||||||||||||||
Slope between two points on the line.Find the slope of the line that connects two points on the curve when
Part B
Complete the table below and answer the question: What happens as we bring the two points closer together (what is the limit as dx goes to zero).
|
Output
|
||||||||||||||||||||||||||||
Find the Slope of a Tangent of a Quadratic (Numerically)Any point along a continuous curve has a slope. You can find an approximation of the slope by taking two points very close together along the curve and using the equation: $$ \text{slope} = m = \frac{y_2-y_1}{x_2-x_1} $$ The closer the points are together the better the approximation of the tangential slope, in general. However, you can get too close when you go beyond the precision of the computer, and your results will be inaccurate.Write a program that determines the slope of the tangent to a quadratic for any given value of x. Test using the quadratic function: $$ f(x) = x^2 $$Complete the table below.
|
OutputShow Notes ▼
|