--- loncom/homework/templates/extreme.problem 2010/06/13 22:56:55 1.1 +++ loncom/homework/templates/extreme.problem 2010/06/14 11:34:20 1.2 @@ -71,14 +71,15 @@ hasextreme:is(at(diff(y(x),x,1),x=LONCAP isrightkind:false; k:0; s:0; -if hasextreme then for i:2 while s=0 do (s:at(diff(y(x),x,i),x=LONCAPALIST[1]),k:i); +if hasextreme then for i:2 while s=0 and not is(diff(y(x),x,i)=0) do (s:at(diff(y(x),x,i),x=LONCAPALIST[1]),k:i); if evenp(k) and is(LONCAPALIST[2]*s>0) then isrightkind:true; hasextreme and isrightkind; - + What is the value of your function at this $text?