Inverse calculation based on the solve() function