update math.cpp and equatoin.cpp. changed the implements of math word cut.