Question: procedure syntax problem , to calculate the maximum for a funcion

Hi I can't find the error in this procedure that i have made , to calculate the maximum and return it for a particular function here is the code : mymax:=proc(h1,a1,b1) local t1; local maxi; maxi:=0; t1:=a1; for t1 to b1 do if h1(t1)>=maxi then maxi=h(t1); t1:=t1+0.1; fi; od; maxi; end; h1 is the function a1 and b1 are the [a1,b1] limit of the interval Can you help me ; thank you
Please Wait...