I need to solve equation in mod .what to do?
조회 수: 9 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (2개)
Steven Lord
2015년 6월 22일
For a system this small? Brute force works fine.
d = 0:39;
d(mod(7*d, 40) == 1)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!