undo_pr function

Undo a product/ratio transformation