Develop migrate math lib