fix the log error and integer error

can enter 1/3^4