Numerical study of the cosmic shear