MCPcopy Create free account
hub / github.com/autodiff/autodiff / f

Function f

examples/forward/example-forward-single-variable-function.cpp:9–12  ·  view source on GitHub ↗

The single-variable function for which derivatives are needed

Source from the content-addressed store, hash-verified

7
8// The single-variable function for which derivatives are needed
9dual f(dual x)
10{
11 return 1 + x + x*x + 1/x + log(x);
12}
13
14int main()
15{

Callers 1

mainFunction · 0.70

Calls 1

logFunction · 0.50

Tested by

no test coverage detected