4 ms·
You should see the implementation of `std::midpoint`[1]. Accounting for correctness even in edge-cases is what large libraries do better than throwaway bits of
by delta_p_delta_x 3y ago
You should see the implementation of `std::midpoint`[1].
Accounting for correctness even in edge-cases is what large libraries do better than throwaway bits of code.
[1]: https://github.com/microsoft/STL/blob/6735beb0c2260e325c3a4c971ec5b75427e9305f/stl/inc/numeric#L669 https://github.com/microsoft/STL/blob/6735beb0c2260e325c3a4c...