#NEWLINE# def test_chebyshev_t( ) : #NEWLINE# #INDENT# ( x , w ) = gauss_chebyshev_t ( 1 , 17 ) #NEWLINE# assert ( [ str ( r ) for r in x ] == [ '0' ] ) #NEWLINE# assert ( [ str ( r ) for r in w ] == [ '3.1415926535897932' ] ) #NEWLINE# ( x , w ) = gauss_chebyshev_t ( 2 , 17 ) #NEWLINE# assert ( [ str ( r ) for r in x ] == [ '0.70710678118654752' , '-0.70710678118654752' ] ) #NEWLINE# assert ( [ str ( r ) for r in w ] == [ '1.5707963267948966' , '1.5707963267948966' ] ) #NEWLINE# ( x , w ) = gauss_chebyshev_t ( 3 , 17 ) #NEWLINE# assert ( [ str ( r ) for r in x ] == [ '0.86602540378443865' , '0' , '-0.86602540378443865' ] ) #NEWLINE# assert ( [ str ( r ) for r in w ] == [ '1.0471975511965977' , '1.0471975511965977' , '1.0471975511965977' ] ) #NEWLINE# ( x , w ) = gauss_chebyshev_t ( 4 , 17 ) #NEWLINE# assert ( [ str ( r ) for r in x ] == [ '0.92387953251128676' , '0.38268343236508977' , '-0.38268343236508977' , '-0.92387953251128676' ] ) #NEWLINE# assert ( [ str ( r ) for r in w ] == [ '0.78539816339744831' , '0.78539816339744831' , '0.78539816339744831' , '0.78539816339744831' ] ) #NEWLINE# ( x , w ) = gauss_chebyshev_t ( 5 , 17 ) #NEWLINE# assert ( [ str ( r ) for r in x ] == [ '0.95105651629515357' , '0.58778525229247313' , '0' , '-0.58778525229247313' , '-0.95105651629515357' ] ) #NEWLINE# assert ( [ str ( r ) for r in w ] == [ '0.62831853071795865' , '0.62831853071795865' , '0.62831853071795865' , '0.62831853071795865' , '0.62831853071795865' ] )