Mathematics tools

maxima optimization for Stack 4.0