mathlog hw5. done