### How to constructe a expression from an array.

39
views
0
10 weeks ago by

Here is the problem. I want to solve a Poisson equation:

$\epsilon_0\Delta\phi=\rho\left(x,y\right)$ϵ0Δϕ=ρ(x,y)
where ρ is the charge distribution. The charge distribution is given by a 2D array.

I want  to solve this equation in this way:

rho = interpolateFunction(rhoArray) #Pseudo code