Evaluation of the Faraday angle by numerical methods and comparison with the Tore Supra and JET polarimeter electronics