Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
https://en.cppreference.com/w/cpp/numeric/math/sqrt
I have checked the following source: https://cplusplus.com/reference/cmath/sqrt/?kw=sqrt, and it did not say that
std :: sqrt
returnsNaN
when the argument is negative.Could you please point out the source of your information? I will check that source if it is more reliable/updated.
This comment is hidden because it contains spoiler information about the solution
thanks for the recommendation but satan banned me from hell when he saw this code so no need to worry