| 4 | import squaring; |
| 5 | |
| 6 | int main() |
| 7 | { |
| 8 | std::cout << "math::sqrt2 has the value " << math::sqrt2 << std::endl; |
| 9 | std::cout << "This should be 0: " << (math::sqrt2 - std::numbers::sqrt2) << std::endl; |
| 10 | std::cout << "This should be 2: " << math::square(math::sqrt2) << std::endl; |
| 11 | } |