Task

Write a function to detect a   divide by zero error   without checking if the denominator is zero.




function [isDividedByZero] = dividebyzero(numerator, denomenator)    
   isDividedByZero = isinf( numerator/denomenator );
   % If isDividedByZero equals 1, divide by zero occured.