How to solve laplace equation in a square domain

I am trying to solve Laplace equation in a square domain with different boundary conditions.
i am confused on doing the Neumann conditions, and type 4 conditions( 2 Dirichlet and Neumann conditions). I feel disappointed that i couldn’t learn from documentation. I feel grateful for your help and replies.Thank you very much!

Hi,
There is an example in FreeFem++ documentation for solving the Laplace equation with mixed boundary conditions on a square domain. The problem includes both Dirichlet and Neumann boundary conditions. Hope this helps,
LaplaceRT.edp (1.2 KB)