#NEWLINE# def test_logpmf( self ) : #NEWLINE# #INDENT# vals1 = np . log ( stats . geom . pmf ( [ 1 , 2 , 3 ] , 0.5 ) ) #NEWLINE# vals2 = stats . geom . logpmf ( [ 1 , 2 , 3 ] , 0.5 ) #NEWLINE# assert_allclose ( vals1 , vals2 , rtol = 1e-15 , atol = 0 ) #NEWLINE# val = stats . geom . logpmf ( 1 , 1 ) #NEWLINE# assert_equal ( val , 0.0 )