Store $x= log($X) Store $y= log($Y) Want $z= log( $X + $Y ) But we don't know $X and $Y, just $x and $y so Want $z= log( exp($x) + exp($y) )