Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


ahmed
Posts:
2
Registered:
5/15/13


wrong result when calculating modulus
Posted:
May 15, 2013 4:30 PM


Hi everyone, i would be very grateful if some one can help me in calculating this result in matlab:
>> mod( (4^15)*(21^13) , 47) ans = 21 which is not correct , it should be 3 , using the windows calculator gets the correct result ( e.g 3 ) but matlab not.
is there another way in matlab to calculate it ?? thanks in advance.



