Skip to content

About

Simple automatic differentiation tool.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Automatic Differentiation

Very simple automatic differentiation tool, implemented using dual numbers and operator overloading.

This code is part of my article on Medium : Automatic Differentiation.

Example

// Dual(value, derivative=0)
Dual x(5, 1); // derivative=1 means we are going to derive with respect to this variable.
Dual y(6);
Dual f = pow(x,2)*y; // the derivative is calculated when the function is computed.
std::cout << f.getDerivative() << std::endl; // get the derivative of y*x^2 with respect to x, evaluated at (x=5,y=6).

About

Simple automatic differentiation tool.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages