<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title></title></head><body>
<div>Hi,</div>
<div><br></div>
<div>I have used proFit for many years and it is great for my
purposes.  I have version 6.1.12.</div>
<div><br></div>
<div>Can anyone help me here - the solution must be very simple!</div>
<div><br></div>
<div>I have laboured long trying to find our how, in programming, I
set the limit for finding a maximum.  I am developing a program
which calls up a function 'combat2'.  I have the following:</div>
<div><br></div>
<div><tt><font color="#009933">SelectFunction</font><font
color="#000000">(</font><font color="#666666">'combat2'</font><font
color="#000000">);</font></tt></div>
<div><tt><font
color="#000000"><x-tab>       
</x-tab></font><font color="#009933">Optimize</font><font
color="#000000">(xValue xMin, precision 0);<br>
<x-tab>     </x-tab>F:=(</font><font
color="#CC6600">findMaximum</font><font
color="#000000">);</font></tt></div>
<div><br></div>
<div>This lets me set the minimum for the range to find the maximum as
xMin - but how do I set the maximum?  If I write</div>
<div><tt><font color="#009933">Optimize</font><font
color="#000000">(xValue xMin,xMax, precision 0);</font></tt></div>
<div>I get an error message asking for "Parameter name expected"
for xMax.</div>
<div><br></div>
<div>Best wishes,</div>
<div><br></div>
<div>Geoff</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div>============================================================<br>
<br>
Geoff Parker FRS<br>
Emeritus Professor<x-tab> 
</x-tab><x-tab>       
</x-tab><x-tab>       
</x-tab>Phone:<x-tab>  </x-tab>home<x-tab>   
</x-tab>0151 3364202<br>
Institute of Integrative Biology<x-tab>   
</x-tab><x-tab>       
</x-tab><x-tab>       
</x-tab>mobile<x-tab>  </x-tab>07973 247877<br>
Biosciences Building<br>
Crown Street<x-tab>   
</x-tab><x-tab>       
</x-tab><x-tab>       
</x-tab><x-tab>       
</x-tab>email<x-tab>   </x-tab>gap@liv.ac.uk<br>
University of Liverpool<br>
LIVERPOOL L69 7ZB<br>
<br>
============================================================</div>
</body>
</html>