Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Derivative of a program

Let us assume you can represent a program as mathematical function, that's possible. How does the program representation of the first derivative of that function look like? Is there a way to transform a program to its "derivative" form, and does this make sense at all?

like image 656
user314715 Avatar asked Nov 30 '22 10:11

user314715


1 Answers

Yes it does make sense, it's known as Automatic Differentiation. There are one or two experimental compilers which can do this, for example NAGware's Differentiation Enabled Fortran Compiler Technology. And there are a lot of research papers on the topic. I suggest you get Googling.

like image 200
High Performance Mark Avatar answered Dec 15 '22 00:12

High Performance Mark