I have a snippet of code that compute the sum of two squared floats:
float a, b, c;
// assign some random float to b and c
a = b*b+c*c;
Can a, the sum of the two squared floats, be negative?
The original snippet is inside a function, so a different way to put the question is the following:
bool fun(float b, float c)
{
return b*b+c*c<0;
}
Is there any pair of values for b and c that gives fun(b,c)==true?