stan-dev/stan — pull request #1001 by PeterLi2016 (2014-08-30 13:30:17+00:00)
Title: Feature/test nan fmod

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

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

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

#### Side Effects:
None.

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

#### Reviewer Suggestions:
Anyone.