Theoretical study of the unusual potential energy curve of the A 1Σ+ state of AgH