Thanks Kevin and Scott, your suggestions work fine using a single table. It just needs a bit of fine tweaking now. David > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Scott Dattalo > Sent: Monday, September 17, 2001 10:11 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: PIC Maths > > > This isn't the intial expression that was asked to be > calculated. It is not > > x^2, but rather 2^x. > > You're right. It would appear that not only do I not read the Off Topic > messages, I don't read the On Topic ones either! > > > Or, you could choose to factor the larger of x and y then the difference > in the exponent would always be negative. The table only needs to be 16 > entries (if linear interpolation is used). > > Sorry about the foul up. > > Scott > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads