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!