mathematica里SetDelayed::write:"Tag List in ...is Protected.a[n_] := (Integrate[-Cos[n*x],{x,-Pi,0}] + Integrate[Cos[n*x],{x,0,Pi}])/Pi;提示SetDelayed::write:"Tag List in {Sin[1],Sin[1/2],Sin[1/3],Sin[1/7]}[n_] is Protected."
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 03:38:16
mathematica里SetDelayed::write:"Tag List in ...is Protected.a[n_] := (Integrate[-Cos[n*x],{x,-Pi,0}] + Integrate[Cos[n*x],{x,0,Pi}])/Pi;提示SetDelayed::write:"Tag List in {Sin[1],Sin[1/2],Sin[1/3],Sin[1/7]}[n_] is Protected."
mathematica里SetDelayed::write:"Tag List in ...is Protected.
a[n_] := (Integrate[-Cos[n*x],{x,-Pi,0}] + Integrate[Cos[n*x],{x,0,Pi}])/Pi;
提示SetDelayed::write:"Tag List in {Sin[1],Sin[1/2],Sin[1/3],Sin[1/7]}[n_] is Protected."
mathematica里SetDelayed::write:"Tag List in ...is Protected.a[n_] := (Integrate[-Cos[n*x],{x,-Pi,0}] + Integrate[Cos[n*x],{x,0,Pi}])/Pi;提示SetDelayed::write:"Tag List in {Sin[1],Sin[1/2],Sin[1/3],Sin[1/7]}[n_] is Protected."
Clear[a]
a = {Sin[1],Sin[1/2],Sin[1/3],Sin[1/7]}
a[n_] := (Integrate[-Cos[n*x],{x,-Pi,0}] +
Integrate[Cos[n*x],{x,0,Pi}])/Pi;
就可以了