Borrar filtros
Borrar filtros

I need to solve equation in mod .what to do?

9 visualizaciones (últimos 30 días)
Sakunrat Jaejaima
Sakunrat Jaejaima el 22 de Jun. de 2015
Comentada: Sakunrat Jaejaima el 22 de Jun. de 2015
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

Respuestas (2)

Torsten
Torsten el 22 de Jun. de 2015

Steven Lord
Steven Lord el 22 de Jun. de 2015
For a system this small? Brute force works fine.
d = 0:39;
d(mod(7*d, 40) == 1)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by