### Problem We don't have these functions. ### Proposed solution Refer to #154 for previous progress. Still need to handle the case when d=0.