Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Differential Programming Languages/Chapter-1-Syntactic-Differentiation

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

The derivative is often introduced as an operation on functions: given a function it's derivative at a point is a linear function . In this book, the derivative is being developed as a programming language construct, so we will need to introduce the derivative as an operation programs . We will restrict our attention to functional programs which for our purposes will mean programs that represent mathematical functions. From this restriction, we can make sense of whether the derivative is implemented correctly -- i.e. that the differentiated program corresponds to the mathematical derivative of the function that the original program represents. While this is not meant to be an enormous change, there are a few differences to point out: 1. The objects are types in a programming language rather than sets. Values in a set are always constructible, and we write to denote that... The immediate challenge is that a single mathematical function can be represented by syntactically different programs