sympy code

sympy version of Maple questions from MATH1010