I find d from 7*d mod 40=1

5 visualizzazioni (ultimi 30 giorni)
Sakunrat Jaejaima
Sakunrat Jaejaima il 17 Giu 2015
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 Commenti
Walter Roberson
Walter Roberson il 18 Giu 2015
What is the error message?
Sakunrat Jaejaima
Sakunrat Jaejaima il 18 Giu 2015
I tried the codes but thereis no error shown. Matlab instead asked for/tried to open some matlab files

Accedi per commentare.

Risposte (1)

Walter Roberson
Walter Roberson il 18 Giu 2015
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.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by