sympy/sympy — pull request #8577 by wanglongqi (2014-12-08 07:15:41+00:00)
Title: Fix plot piecewise function

flat function in `plot.py` does not convert the vector to float type, thus numpy return AttributeError: sqrt.

Convert the vector explicitly to np.float will fix this bug.