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