stan-dev/stan — pull request #995 by PeterLi2016 (2014-08-30 12:19:56+00:00)
Title: Feature/test nan square

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

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

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

#### Side Effects:
None.

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

#### Reviewer Suggestions:
Anyone.