Import part 1
Import part 2
Fix inv_mgx for degree 15 and inv_mg2 for any