Abstract :
The code fgh is an up-dated version of a code coulfg (see [Seaton, Comput. Phys. Comm. 25 (1982) 87]), used for the calculation of the Coulomb functions f and g, analytic in the energy, for attractive potentials. The new code works for attractive and repulsive potentials and also gives the functions h which have simple asymptotic forms. There is an option to use either the variables (ϵ,r) customary in atomic physics, or (for positive energies) (η,ρ) customary in nuclear physics. When (η,ρ) are used, the code also gives the functions Fℓ(η,ρ) and Gℓ(η,ρ).Use of series solutions can lead to loss of accuracy due to cancellation effects. fgh provides an indication of the number of significant figures lost due to cancellations.