Modulus Arithmetic Function Not Working
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nicholas Dalton
le 21 Oct 2021
Commenté : Nicholas Dalton
le 21 Oct 2021
I'm trying to use the function rem() to determine the remainder of some modulus arithmetic equation, however my implementation doesn't seem to work. The equation in question is: . The correct answer should be but when I try solving it with the rem() function I get an unexpected answer. What am I doing wrong?
>> r=rem(715^17,2773)
r =
2089
>>
I checked the original equation using Wolframalpha and it does give me the answer I was expecting:
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Assumptions dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!