Inverse functions - Linear and discrete