Edit math settings