Assignment #7: Curve Fitting & Solver
Part I Due 10/18/05
In this assignment you will do two unrelated things: (1) You will work with linear relationships, using the forecast() function to predict values and using Insert, Trendline..., to put a line on a graph. (2) You will use the solver to create a calculator sheet that can solve an equation that cannot be solved algebraically.
- Read this assignment.
Part I: Curve Fitting
- Read Chapter 7 in Liengme. Work Exercises 1, 2, and 3 and Problems 1 (a) and 1 (b). For problem one, there's a hint if you need it.
- Save the worksheet titled "ConductivityTDSData.xls" to your I: drive (click here if you would like to review how to save from a link.) Open the saved workbook and fill in the last column ("Predicted TDS") using the Forecast() function.
- The Forecast() function takes three arguments:
- The X value: This would be the conductivity value you wanted to predict TDS from.
- The range of known Y values: These have the units of whatever you are looking for. In this case they are the range of TDS values.
- The range of known X values: These have the same units as your X. In this case they are the range of conductivity values.
- Be sure to set the known Y and known X ranges using absolute references (with the $'s).
- Add cells that give the slope and intercept of the linear regression line that has conductivity as the X values and TDS as the Y values.
- Create an X-Y Graph (scatter plot) of the Conductivity and TDS values. Add a linear trendline. Label the graph, the axes, and the data series appropriately.
- Print the appropriate sections of the worksheets you have worked on.
- Use WebCT to send me all your files. Please include your initials somewhere in the name of each file you turn in.
NOTE: Mid-term exam will cover up to this point.
Part II: Goal Seek and Solver
- Work the following Goal Seek example:
- Save and open "GoalSeekinaChart.xls"
- Point at the Location E point in the chart. The tool tip (yellow box) should appear reading 'Series "Food Consumed (kg/yr)" Value: 7,665'.
- Click once and release. All the points in the series should be highlighted. Click a second time and release. The points for D and E only should be highlighted. Click a third time and hold. Drag the point down until the value of 5,910 is displayed. Release. The Goal Seek dialog box will appear asking which cell you wish to change. Point at cell B6 then click OK. How many birds are there now in Location E? (Answer: 31)
- In Liengme, read pages 192 ("Finding Roots with Goal Seek") through (stop at "Concepts: C"). There is also information on pages 877-882 of Using Office 2000 (on reserve in the Thames Valley Library).
- You don't need to print or save anything from this section (II-1).
- Build a water chemistry calculator and use it with Solver.
- The Solver is discussed on pages 892-908 of Using Office 2000, which I have copied and placed on reserve in the library.
- Background: The pH of a solutions is defined as follows:
- pH = -log [H+] with
[H+] = the hydrogen ion concentration in moles per liter (M)
- In a solution consisting of a weak acid and the salt of a weak acid (eg, an acetic acid/sodium acetate solution), the hydrogen ion concentration obeys the following formula:
(equation 1)
- where:
- CT = [acid] + [salt], ie, the total amount of acid and salt added to the solution.
- [salt] = the amount of salt added to the solution.