I need to solve equation in mod .what to do?
Afficher commentaires plus anciens
I want to find d from 7*d mod 40 =1.
I need to solve equation in mod.what to do ?
I do
Syms d
Eqn=Mod(1,40)==7*d;
Sold=solve(Eqn,d)
But Answer is
1/7
Réponses (2)
Steven Lord
le 22 Juin 2015
For a system this small? Brute force works fine.
d = 0:39;
d(mod(7*d, 40) == 1)
1 commentaire
Sakunrat Jaejaima
le 22 Juin 2015
Catégories
En savoir plus sur Number Theory dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!