Raised by methods in the Math module when the argument is outside the domain of the function (e.g. Math.sqrt(-1) or Math.asin(2)).
Math--DomainError
ruby Raised by methods in the Math module when the argument is outside the domain of the function (e.g. Math.sqrt(-1) or Math.asin(2)).