#NEWLINE# def test_random_odd( self ) : #NEWLINE# #INDENT# for k in [ 0 , 1 , 2 , 3 , 4 , 5 , 6 ] : #NEWLINE# #INDENT# for n in [ 33 , 65 , 55 ] : #NEWLINE# #INDENT# f = random ( ( n , ) ) #NEWLINE# af = ( sum ( f , axis = 0 ) / n ) #NEWLINE# f = ( f - f ) #NEWLINE# assert_almost_equal ( sum ( f , axis = 0 ) , 0.0 ) #NEWLINE# assert_array_almost_equal ( diff ( diff ( f , k ) , ( - k ) ) , f ) #NEWLINE# assert_array_almost_equal ( diff ( diff ( f , ( - k ) ) , k ) , f )