Script to test inversion and multiplication