Function
f
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 |
| 9 | dual f(dual x) |
| 10 | { |
| 11 | return 1 + x + x*x + 1/x + log(x); |
| 12 | } |
| 13 | |
| 14 | int main() |
| 15 | { |
Tested by
no test coverage detected