function Y=Ymax() global YMAX Y=YMAX; endfunction