Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wolfram mathematica 为什么’;FieldExp(有限域包)返回一个基本元素? 需要[“FiniteFields`]” fld=GF[2,3] GF[2,{1,0,1,1}] PowerListQ[fld] 真的 pe=FieldExp[fld,1] FieldExp[GF[2,{1,0,1,1}],1]_Wolfram Mathematica - Fatal编程技术网

Wolfram mathematica 为什么’;FieldExp(有限域包)返回一个基本元素? 需要[“FiniteFields`]” fld=GF[2,3] GF[2,{1,0,1,1}] PowerListQ[fld] 真的 pe=FieldExp[fld,1] FieldExp[GF[2,{1,0,1,1}],1]

Wolfram mathematica 为什么’;FieldExp(有限域包)返回一个基本元素? 需要[“FiniteFields`]” fld=GF[2,3] GF[2,{1,0,1,1}] PowerListQ[fld] 真的 pe=FieldExp[fld,1] FieldExp[GF[2,{1,0,1,1}],1],wolfram-mathematica,Wolfram Mathematica,PowerListQ似乎不接受变量替换: Needs["FiniteFields`"] fld = GF[2, 3]; PowerListQ[fld] = True; FieldExp[fld, 1] PowerListQ[GF[2, 3]] = True; FieldExp[fld, 1] 这是回报 FieldExp[GF[2,{1,0,1,1}],1] 及 {0,1,0}2 这是预期的答案 我尝试了PowerListQ[Evaluate[fld]]=True无效 ToExpression[

PowerListQ似乎不接受变量替换:

Needs["FiniteFields`"]
fld = GF[2, 3];
PowerListQ[fld] = True;
FieldExp[fld, 1]
PowerListQ[GF[2, 3]] = True;
FieldExp[fld, 1]
这是回报

FieldExp[GF[2,{1,0,1,1}],1]

{0,1,0}2

这是预期的答案

我尝试了
PowerListQ[Evaluate[fld]]=True无效

ToExpression[“PowerListQ[“ToString[fld]”]]=True”]
虽然有效

需要[“FiniteFields`]
fld=GF[2,3];
ToExpression[“PowerListQ[“ToString[fld]”]]=True“];
FieldExp[fld,1]

收益率{0,1,0}2

你能详细说明一下你的问题吗?这有点直率。我假设3、5和7是输出,但我在5处得到的是False而不是True。非常感谢您的解决方案,Pete
Needs["FiniteFields`"]
fld = GF[2, 3];
ToExpression["PowerListQ[" <> ToString[fld] <> "]=True"];
FieldExp[fld, 1]