sadly this isn't the first tine that the equal function fails with me and don't know the reason.
The isequal() function didn't fail. The two results are different ... just not by very much:
>> percent_difference=abs(c_num - sing_ratio)./c_num*100,
If you want to know how cond() is computed, you can just read it: