Can I compile a function that contains ArcTanh[]? The following doesn't work
Needs["CCodeGenerator`"]
c = Compile[ {{x}}, ArcTanh[x]^2];
c[2.5]
Mathematica gives me
"CompiledFunction::cfn: Numerical error encountered at instruction 1; proceeding with uncompiled evaluation>>"
However, in the answer to this question, a reply indicates that ArcTanh can be compiled.
Compile[{{x, _Complex}}, ...]. – Szabolcs Sep 23 '13 at 20:10