| 11 | } |
| 12 | |
| 13 | inline auto mult(long double l, long double r) |
| 14 | { |
| 15 | static size_t count{}; |
| 16 | std::cout << ++count << " multiplications" << std::endl; |
| 17 | return l * r; |
| 18 | } |
| 19 | |
| 20 | // Recursive function to calculate x to the power n |
| 21 | long double power(double x, int n) |