smplification generation of log table and exp table