#NEWLINE# def test_issue_8601( ) : #NEWLINE# #INDENT# n = Symbol ( 'n' , integer = True , negative = True ) #NEWLINE# assert ( catalan ( ( n - 1 ) ) == S . Zero ) #NEWLINE# assert ( catalan ( ( - S . Half ) ) == S . ComplexInfinity ) #NEWLINE# assert ( catalan ( ( - S . One ) ) == ( - S . Half ) ) #NEWLINE# c1 = catalan ( ( - 5.6 ) ) . evalf ( ) #NEWLINE# assert ( str ( c1 ) == '6.93334070531408e-5' ) #NEWLINE# c2 = catalan ( ( - 35.4 ) ) . evalf ( ) #NEWLINE# assert ( str ( c2 ) == '-4.14189164517449e-24' )