def test_mapping_inverse():
 RS = (Rotation2D & Scale)
 M = ((RS | Mapping([2, 0, 1])) | RS)
 m = M(12.1, 13.2, 14.3, 15.4)
 assert_allclose((0, 1, 2), m.inverse(*m(0, 1, 2)), atol=1e-08)

def test_mapping_inverse ( ) : RS = ( Rotation2D & Scale ) M = ( ( RS | Mapping ( [ 2 , 0 , 1 ] ) ) | RS ) m = M ( 12.1 , 13.2 , 14.3 , 15.4 ) assert_allclose ( ( 0 , 1 , 2 ) , m . inverse ( * m ( 0 , 1 , 2 ) ) , atol = 1e-08 )
tests inverting a compound model that includes a mapping .