A method for computing the function log(ex1+ex2)
or ln(ex1+ex2)
for a first argument value x1 and a second argument value x2 includes
generating a table having a first data field and a second data field. The first
data field includes N entries of table index values selected from a range of |x1-x2|
argument values and scaled by a scaling factor. The second data field includes
N entries of computed table values computed based on the equation log(1+e-|x1-x2|)
or ln (1+e-x1-x2|)
for each of the |x1-x2| argument values selected for the
table index values. The computed table values are also scaled by the same scaling factor.