Definisi fungsi simpy

import sympy
x = sympy.symbols('x')
f = x**2 + 1
Mortimer