SetDelayed::write: Tag Plus in (1/(685+(-10)^2^(1/6))+1/(738+(-10)^2^(1/6)))[x_,y_,z_,x0_,y0_,z0_] is Protected.
There is such a problem, here's an example of code. maybe the amount of iteration is too large?
code
Clear[c, d, P, R]
P = 1;(*Определяем параметры*)
R = 1; (*Коэффициент R*)
{x0, y0, z0} = {28, 13, 20}; (*Координаты точки наблюдения*)
kValue = 1; (*Параметр k*)
{nValue, mValue, lValue} = {10, 10,
10}; (*Верхние пределы суммирования*)
dValue = 6; (*Параметр d*)
(*Определение функции c*)
c[x_, y_, z_, k_] := ((x - k)/(x - x0))*
Sqrt[(x - x0)^2 + (y - y0)^2 + (z - z0)^2]
(*Определение уравнения*)
equation[x_, y_, z_, x0_, y0_, z0_] :=
P*R^2*Sum[
1/((x - x0)^2 + (y - y0)^2 + (z - z0)^2)^(2^(c[x, y, z, k]/
dValue)), {k, 1, nValue}]
(*Построение 3D-графика*)
Plot3D[equation[x, y, z, x0, y0, z0], {x, -20, 20}, {y, -20, 20},
PlotRange -> All, AxesLabel -> {"x", "y", "Intensity"},
PlotLabel -> "3D модель"]