Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
float x, y, result;

if ( fpclassify(x) == FP_ZERO0.f) && fpclassify(y) == FP_ZERO) 0.f) ) {
     /* handle domain error */
}

result = atan2(y, x);

...

Code Block
bgColor#ccccff
float result, x;

if (islessequal(x, 0)) {
     /* handle domain and range errors */
}

result = log(x);

...

Code Block
bgColor#ccccff
float x, y, result;

if (fpclassify (x) == FP_ZERO0.f) && islessequal(y, 0) ) {
     /* handle domain error condition */
}

result = pow(x, y);

...

Code Block
bgColor#ccccff
float x, result;

if (isless(x, 0)){
     /* handle domain error */
}

result = sqrt(x);

...