this pr adjusts the types of the differentiation functions to allow passing closures as well as functions.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by jonhue and has received 0 comments.