def test_inverse_deriv():
 np.random.seed(24235)
 for link in Links:
  for k in range(10):
   z = (- np.log(np.random.uniform()))
   d = link.inverse_deriv(z)
   f = (1 / link.deriv(link.inverse(z)))
   assert_allclose(d, f, rtol=1e-08, atol=1e-10, err_msg=str(link))

def test_inverse_deriv ( ) : np . random . seed ( 24235 ) for link in Links : for k in range ( 10 ) : z = ( - np . log ( np . random . uniform ( ) ) ) d = link . inverse_deriv ( z ) f = ( 1 / link . deriv ( link . inverse ( z ) ) ) assert_allclose ( d , f , rtol = 1e-08 , atol = 1e-10 , err_msg = str ( link ) )
logic check that inverse_deriv equals 1/link .