Add is_real functionality for factorial fix 8658
Merge pull request #8706 from aktech/issue8658

Add is_real functionality for factorial, Fix issue #8658