Olin, I am stuck with the values as they are. I can scale them but thats about all! David > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Olin Lathrop > Sent: Sunday, September 16, 2001 9:36 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: PIC Maths > > > > I have two 8-bit values, X & Y. Each can be anywhere within a > range of say > I don't know of any easy trick for trying to do addition in log > space. You > could use a table to convert from the log values to linear value, do the > addition, then use a table again to convert back to this log space. That > would be relatively fast but use a lot of code space. > > Why do the values need to be represented as they are? If you can store > everything internally as linear energy values, it would simplify doing > calculations like this. Do these values come in this way, need to go out > this way? > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body