stan-dev/stan — pull request #961 by PeterLi2016 (2014-08-29 01:55:19+00:00)
Title: Feature/test nan erfc

#### Summary:
Added NaN tests for erfc in agrad/fwd/functions, and agrad/rev/functions with doc on behavior at NaN. I also switched to the no namespace version of erfc to match the double version.

#### Intended Effect:
Added NaN tests for erfc in agrad/fwd/functions, and agrad/rev/functions with doc on behavior at NaN.

#### How to Verify:
Run test/unit-agrad-fwd/functions/erfc, test/unit-agrad-rev/functions/erfc

#### Side Effects:
None.

#### Documentation:
Added doc on behavior of erfc at NaN and partial derivatives.

#### Reviewer Suggestions:
Anyone.