#NEWLINE# def test_log10( ) : #NEWLINE# #INDENT# fun = ( lambda x : ( 3.0 * np . log10 ( x ) ) ) #NEWLINE# d_fun = grad ( fun ) #NEWLINE# check_grads ( fun , abs ( npr . randn ( ) ) ) #NEWLINE# check_grads ( d_fun , abs ( npr . randn ( ) ) )