标签: wolfram-mathematica
假设你想要整合一个表达式,它取决于n个变量,n个n维度,n也可以变量。
答案 0 :(得分:3)
这样的东西?
multyIntegrate[fun_, n_Integer] := With[{x = Sequence @@ Table[Unique[mi], {n}]}, Integrate[fun[x], x]] multyIntegrate[g, 3]
f[i___] := Total[{i}.{i}] multyIntegrate[f, 3]