Vasile, Unfortunately I can't help with the maths but I am intrigued by the equation. Can you elaborate a little more on this - please. John -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads