So in todays post I will be focusing mostly on what a many to one function is, which may some times also be freed to as a surjective function. Say you have a function that takes just one argument that is x, and will return a value that can be thought of as a y value. On top of this lets say that for any given x value that is passed to the function, there may be more than one other x value that will result in the same y value returned. Such a function is a many to one type function, rather than what would be called a one to one function. So then it is not possible to create an inverse function for a many to one function, as there would be a range of possible return values for a given known argument value, while it should be possible to create an inverse for a one to one function. In any case in todays post I will be writing many just about the topic of many to one.
For a basic example of a many to one function take into account this function that will take a degree value, and create a radian value from that degree value. Once a radian value is created from the degree argument that result is then passed to Math.sin, the result of which will be the return value of the function. With this function when I pass a degree value of 45 for this function that return value is 1, when I pass the degree value of 450 the return value is again 1. So then there is more than one value for d that will return the same value, thus it is an example of a many to one function.
So the concept of a many to one function is related to the concept of a one to one function, and a one to one function is the kind of function that I need to write when it comes to having an inverse function. When it comes to a many to one function it is not possibility to cerate an inverse function for it, or at least I should say that the return value of an inverse function of a many to one function would be some kind of function that would return an array of possibles for an unknown given a known for the inverse function.