modify is_real to not fail for non-number
Merge pull request #7411 from smichr/trig

modify is_real to not fail for non-numbers