<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def distance(self, x):
 """Compute the normalized distance to `x` from the center of the ellipsoid."""


        d = x - self.ctr

        return np.sqrt(np.dot(np.dot(d, self.am), d))