5.1 Mathematica and Rubi grading function