Programming, Science, Python, Mathematics, Towards Data Science.
elif(right.type=="N"): space.u[:,-1]=right.value*space.dx+space.u[:,-2] if(top.type=="D"): space.u[-1,:]=2*top.value-space.u[-2,:] elif(top.type=="N"): space.u[-1,:]=-top.value*space.dy+space.u[-2,:] if(bottom.type=="D"): space.u[0,:]=2*bottom.value-space.u[1,:] elif(bottom.type=="N"):