Function parametrization: a fast inverse mapping method