Difference between revisions of "EGR 103/Spring 2021/Lab 5"
(Created page with "<div class="noautonum">__TOC__</div> == Errors / Additions == None yet! == 5.1 Introduction == The main purpose of this lab will be to look at debugging and using Chapra Fig...") |
|||
Line 13: | Line 13: | ||
[[EGR 103/Spring 2021/Beginning of Lab | Beginning of Lab]] | [[EGR 103/Spring 2021/Beginning of Lab | Beginning of Lab]] | ||
− | + | == 5.4 Debugging Introduction == | |
We will go through debugging in lab using the [[Python:Debugging]] page. | We will go through debugging in lab using the [[Python:Debugging]] page. | ||
− | + | == 5.5 Connect == | |
The second Connect assignment is active. For Chapra 3.4, note that you will be using your function as part of the lab assignment and also note that the table in the Connect assignment has different values from the book. Use the values from the Connect assignment in all cases. | The second Connect assignment is active. For Chapra 3.4, note that you will be using your function as part of the lab assignment and also note that the table in the Connect assignment has different values from the book. Use the values from the Connect assignment in all cases. | ||
Revision as of 16:35, 24 February 2021
Errors / Additions
None yet!
5.1 Introduction
The main purpose of this lab will be to look at debugging and using Chapra Figure 4.2.
5.2 Resources
See main EGR 103 page for links to these
5.3 Getting Started
5.4 Debugging Introduction
We will go through debugging in lab using the Python:Debugging page.
5.5 Connect
The second Connect assignment is active. For Chapra 3.4, note that you will be using your function as part of the lab assignment and also note that the table in the Connect assignment has different values from the book. Use the values from the Connect assignment in all cases.
5.6 Individual Lab Assignment
5.6.1
Note that the skeleton of the code is already given. The chapra_0304.py file should not do any of the graphing - it should only contain a function that takes two arguments and then returns an array of temperatures.
5.6.2
For this one, you will be making changes to an extended version of the Chapra 4.2 code in order to use accumulation to estimate values of cosine. It is very similar to using an accumulation to estimate values of the exponential.
5.6.3
For this one, you will be making changes to either the original or extended version of Chapra 4.2 in order to use a mapping to estimate roots of a function. It is very similar to using the Newton method mapping to estimate values of a square root. Note - though the mapping for the lab assignment comes from a method called Newton-Raphson, its origin is different from the Newton method discussed in class for finding a square root.