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