stan-dev/stan — pull request #999 by PeterLi2016 (2014-08-30 13:16:49+00:00)
Title: Feature/test nan fmax

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

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

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

#### Side Effects:
None.

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

#### Reviewer Suggestions:
Anyone.