Remove math functions from external.go and put in external_math.go