![]() |
Stan Math Library
5.4.0
Automatic Differentiation
|
Return the scaled complementary error function of the argument.
The derivative comes from internal::erfcx_derivative. Below 4 it is 2 * x * erfcx(x) - 2 / sqrt(pi), which reuses the value. At 4 and above that difference cancels, so the tail rational supplies the derivative directly.
| T | inner type of the fvar |
| x | argument |