<div dir="ltr">Hi:<div><br></div><div>I can't figure out how this can be. Why isn't "max"working and why are the values divided by 1000?</div><div><br></div><div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">cold_hours_cost = new(2,float)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">hot_hours_cost = new(2,float)</span></p></div><div><br></div><div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">p_cold = T*cold_hours</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">p_hot = T*hot_hours</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">cold_hours_cost(1) = p_cold</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">hot_hours_cost(1) = p_hot</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>print("cold_hours = " + cold_hours_cost)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>print("hot_hours = " + hot_hours_cost)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">max_c = max(cold_hours)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">max_h = max(hot_hours)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">print("max(cold_hours) = " + max_c)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">print("max(hot_hours) = " + max_h)</span></p></div><div><br></div><div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>cold_hours = 0</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">(1)<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>cold_hours = -4111.11</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>hot_hours = 0</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">(1)<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>hot_hours = 4111.11</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>max(cold_hours) = -4.11111</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:22px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,139)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>max(hot_hours) = 4.11111</span></p><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior <font color="#000000">Scientist, Lecturer,</font></div><div><div><font color="#000000">The Institute of Earth Sciences, <br>The Hebrew University of Jerusalem, <br>Givat Ram, Jerusalem 91904, Israel <br></font></div><font color="#000000">Tel: 972 547 231 170<br>Fax: (972)-25662581</font></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">https://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br><br></div></div></div></div></div></div></div>