Versions Compared

Key

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

...

Wiki Markup
However, this code may produce a domain error if {{x}} is not in the range \[-1, \+1\].

Compliant Solution

This code The following compliant solution uses bounds checking to ensure that there is not a domain error.

...

However, this code may produce a domain error if both x and y are zero.

Compliant Solution

This code The following compliant solution tests the arguments to ensure that there is not a domain error.

...

However, this code may produce a domain error if x is negative and a range error if x is zero.

Compliant Solution

This code The following compliant solution tests the suspect arguments to ensure that no domain or range errors are raised.

...

However, this code may produce a domain error if x is negative.

Compliant Solution

This code The following compliant solution tests the suspect argument to ensure that no domain error is raised.

...