I dont know if it would be of any help but there's a zippd excel spreadsheet (phase.zip) on the downloads page of my website that may be of use, it was constructed for working on linearising phase control for lighting dimmers and includes the generation of lookup tables and may contain what you want... Cheers -- Andy B. http://www.abtec.demon.co.uk SBN Level 2 Member --------------------------------------------------------- "How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical senstaions and my state of mind....." ------------------------------------------- Douglas Adams