Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NB] add function and algorithm differentiation (#8644)
* [NB] add function and algorithm differentiation - algorithms and statements are differentiated properly - functions and function bodys are differentiated - recursion is handled - multiple occurences are handled - ToDo: strip interface variables such that only continuous are differentiated * [NB] improve function differentiation 1. if the function is builtin -> use hardcoded logic 2. if the function is not builtin -> check if there is a 'fitting' derivative defined. - 'fitting' means that all the zeroDerivative annotations have to hold 2.1 fitting function found -> use it 2.2 fitting function not found -> differentiate the body of the function ToDo: respect the 'order' of the derivative when differentiating!
- Loading branch information
Showing
12 changed files
with
577 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.