<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def d(self, xi):
 """Convenience function to compute first derivative of basis functions. 'Memoized' for speed."""

        return self.__basis(xi, self.p, compute_derivatives=True)