Open SergeiOssokine opened 3 years ago
Dear devs,
have you had a chance to look at this?
Thanks again!
Hi @SergeiOssokine , I sincerely apologize for the delay. You are right, this needs an extension to the current code to include catching FuncCall expressions. We are working on it and should be updating this soon. My apologies!
Also, please feel free to contribute: https://github.com/deshanadesai/acorns/blob/master/CONTRIBUTING.md
We would highly appreciate any help!
Dear devs,
recently I have been trying to differentiate complicated expressions that eventually result in nested calls to
pow
. I find that the forward mode derivative for these cases is not taken correctly. Here is the MWE:This gives as the derivative
(pow(pow,(2-1)) * (2 * 0 + pow * 0 * log(pow)))
which looks like it's usingpow
as a variable instead of a function.Computing directly the derivative of
gives the correct result,
(pow(x,(4-1)) * (4 * 1 + x * 0 * log(x)))
. Unfortunately my expressions are complicated enough that no such simplifications are possible.