stan-dev/stan — pull request #998 by PeterLi2016 (2014-08-30 12:20:29+00:00)
Title: Feature/test nan tanh

#### Summary:
Added NaN tests for tanh in math/functions, agrad/fwd/functions, and agrad/rev/functions with doc on behavior at NaN.

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

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

#### Side Effects:
None.

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

#### Reviewer Suggestions:
Anyone.