I would like to integrate over a dilationed region in higher dimensions.
In 3 dimensions it works well.
(*Nintegrate over a 3 dim region*)
regS = Simplex[{{1, 0, 0}, {0, 1, 0}, {0, 0,
1}, {-(1/3), -(1/3), -(1/3)}}];
regSdil = RegionDilation[regS, 0.1];
NIntegrate[1, {x, y, z} \[Element] regS] (*0.333*)
NIntegrate[1, {x, y, z} \[Element] regSe] (*0.764*)
But in 4 dimensions I got the following error message: "Invalid integration variable or limit(s)"
(*Nintegrate over a 4 dim region*)
regS = Simplex[{{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0,
1}, {1/4 (1 - Sqrt[5]), 1/4 (1 - Sqrt[5]), 1/4 (1 - Sqrt[5]),
1/4 (1 - Sqrt[5])}}];
regSdil = RegionDilation[regS, 0.1];
NIntegrate[1, {x, y, z, k} \[Element] regS] (*0.0931*)
NIntegrate[1, {x, y, z, k} \[Element]
regSdil] (***"Invalid integration variable or limit(s)"***)
I don't know why. Is there a way to solve this. Or is there a better way to do such a calculation?