> I'm sorry, > > else if sign(x-a) = 'pos and sign(x-b) = 'pos > > should be replaced by > > else if sign(x-a) = 'pos and sign(b-x) = 'pos > You're right. I'll fix it. Thanks -- Mario Rodriguez Riotorto http://www.telefonica.net/web2/biomates