Question #891

All functions are invertible.

An inverse function (or anti-function) is a function that "reverses" another function: if the function f applied to an input x gives a result of y, then applying its inverse function g to y gives the result x, and vice versa. Not all functions are invertible! Look at the example below, my_function() definitely cannot be inverted.


import random

def my_function():
    return random.randint(100)

(stackoverflow.com/questions/15200560/calculate-inverse-of...)


Comment on Disqus:

Question difficulty: πŸ”΅πŸ”΅πŸ”΅πŸ”΅πŸ”΅