필터 지우기
필터 지우기

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

조회 수: 9 (최근 30일)
Sakunrat Jaejaima
Sakunrat Jaejaima 2015년 6월 22일
댓글: Sakunrat Jaejaima 2015년 6월 22일
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

답변 (2개)

Torsten
Torsten 2015년 6월 22일

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

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by