Abs function on dual numbers.
Cosinus function on dual numbers.
Helper function that returns a dual number with the specified real and dual parts.
Exponential function on dual numbers.
Sinus function on dual numbers.
Dual number for automatic differentation
https://en.wikipedia.org/wiki/Dual_number
https://en.wikipedia.org/wiki/Automatic_differentiation#Automatic_differentiation_using_dual_numbers
"^^" operator works only for integral numbers.
Copyright (c) 2019, René Heldmaier and others (see individual files)
This module contains the Dual type, which is used to represent dual numbers, along with related mathematical operations and functions.
The intention of the this module is to provide a dual number type, which can be used for automatic differentation. This means you can calculate with it the same way you would with floating point numbers. The real part will be identically to the result of a calculation with floating point numbers. Comparison operations (opCmp) ignore the value of the dual part.
To calculate the derivate with respect to a variable, set the dual part of this variable to 1. All other dual parts should be 0. After the calculation the dual part contains the derivate.