A far-near field transformation using the fast multipole techniques