<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="serif">One common mistake I have seen at least twice
now on the project relates to when you modify the code to
produce the graphs. When you add <br>
</font></p>
<p><span
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> if
( t >= 0.5 and t < 0.5+h):</span> </p>
<div><span
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
rate = -(sArray[len(sArray)-1] - sArray[len(sArray)-2]) / h</span></div>
<div><span
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
print (str(t) + " " + str(rate))</span></div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">to your code you need to make sure
that you use SPACES (from the spacebar) and not TABS to indent.
Python interprets tabs and spaces differently and indentation is
what is used to structure the control structures in python
programs. That means that the "i" in "if" needs to be directly
under and in the same column as the first "e" in "<span
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">esArray
= np.append(esArray,[es])" </span><font
face="Helvetica, Arial, sans-serif">from the previous line.</font></div>
<div class="moz-cite-prefix"><font
face="Helvetica, Arial, sans-serif"><br>
</font></div>
<div class="moz-cite-prefix"><font
face="Helvetica, Arial, sans-serif">If you make these changes
and still don't get the printed time/rate information, please
contact me. I would really like to get all of this resolved
before class tomorrow.</font></div>
<div class="moz-cite-prefix"><font
face="Helvetica, Arial, sans-serif"><br>
</font> </div>
<div class="moz-signature">-- <br>
<b><i>Andrew J. Pounds, Ph.D.</i></b><br>
<i>Professor of Chemistry and Computer Science</i><br>
<i>Director of the Computational Science Program</i><br>
<i>Mercer University, Macon, GA 31207 (478) 301-5627</i></div>
</body>
</html>