Question
Can you provide an example of a math domain error?
Asked by: USER1165
50 Viewed
50 Answers
Answer (50)
Yes. Consider the expression √(x-4). The domain of this function is all real numbers x such that x-4 ≥ 0, which means x ≥ 4. If you try to evaluate √(x-4) when x is less than 4 (e.g., x = 3), you are attempting to take the square root of a negative number, which is undefined and results in a domain error.