Solving a discrete logarithm problem returns a 0x1 sym or Unable to find explicit solution

5 ビュー (過去 30 日間)
syms x
solve(2 == (6^x) - (11 * ((6^x)/11)),x)
Returns:
ans =
Empty sym: 0-by-1
I tried using:
syms x
solve(2==mod((6^x),11),x)
but i recieve:
Warning: Unable to find explicit solution. For options, see help.
> In solve (line 317)
ans =
Empty sym: 0-by-1
I just want to solve:
  2 件のコメント
Torsten
Torsten 2022 年 1 月 9 日
Did you find an example that MATLAB's "solve" is able to solve congruences ?

サインインしてコメントする。

回答 (1 件)

Torsten
Torsten 2022 年 1 月 9 日
編集済み: Torsten 2022 年 1 月 9 日
Brute force:
x = 0:24;
y = uint64(6.^x);
d = mod(y,11);
x = x(d==2)

カテゴリ

Help Center および File ExchangeConversion Between Symbolic and Numeric についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by