I find d from 7*d mod 40=1

5 次查看(过去 30 天)
Sakunrat Jaejaima
Sakunrat Jaejaima 2015-6-17
I find d from 7*d mod 40 =1
syms d
eqn= 7*d==1;
solve(eqn,d,Domain=Dom::IntegerMod(40))
But there error. Help me please.
  3 个评论
Walter Roberson
Walter Roberson 2015-6-18
What is the error message?
Sakunrat Jaejaima
Sakunrat Jaejaima 2015-6-18
I tried the codes but thereis no error shown. Matlab instead asked for/tried to open some matlab files

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2015-6-18
Try
feval(symengine, 'solve', eqn, d, sym('Domain=Dom::IntegerMod(40)'))
Domains are MuPAD objects, and you need to call into MuPAD to use them.

标签

Community Treasure Hunt

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

Start Hunting!

Translated by