<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 About
This notebook was created to follow the sympy code generation tutorial at this link
Step1:  Code printing
<ASSISTANT_TASK:>
Python Code:
from sympy import *
init_printing()
pi.evalf(10)
alpha, beta, gamma, x, y = symbols('alpha beta gamma x y')
alpha, beta
f= Function('f')
diff(sin(x+1)*cos(y), x, y)
test = diff(f(x)+1,x)
test
Md = Function('M_d')(x)
Md
q1, q2, q3 = symbols('q_1 q_2 q_3')
q = Matrix([q1, q2, q3])
q
acol = Matrix([q1**2+sin(q2), exp(q3), q2-q1])
J = acol.jacobian(q)
J
n, m = symbols('n m', integer=True)
M = MatrixSymbol('M', n, m)
b = MatrixSymbol('b', m, 1)
M*b
(M*b).T
(M*b).T
Transpose(M*b).doit()
A = IndexedBase('A')
i = Idx('i')
A[2], A[i]
Explanation: About
This notebook was created to follow the sympy code generation tutorial at this link
End of explanation
x = symbols('x')
expr = abs(sin(x**2))
expr
ccode(expr)
tanh(x).rewrite(exp)
Explanation: Code printing
End of explanation
<END_TASK>