0
$\begingroup$

I have set of inequalities in two dimension space which represent relation between $X$ and $Y$. now I want a function whose input is $X$ and output is $Y$. In other words, I want $F$ such that $F(X)=Y$ satisfying given inequalities. for example $ X >= 0, Y>=0, X<=63, Y<=15, X>=4Y, X<=4Y+3$

Now in above case if I input X, function should return Y. Hence, for example, in above case $F(0)=0$ and $F(4)=1$ and so on... You can plot these function on WolframAlpha and see how it gives integer solutions. But I'm looking for a function which maps X to Y.

Is it possible to get such function?

  • 0
    Do you want any function with graph in that area? Surely you must see that $F(4)$ could be anywhere in $[0.25, 1]$ and still satisfy the inequalities.2012-12-08
  • 0
    Ok..even if function returns anything in some range, I can take ceil value of it..basically I want both X and Y to be integers..on WolframAlpha page have a look at Integer solutions section..2012-12-08
  • 0
    So you want integers that satisfy the inequality? You should really say so. In general this has nothing to do with functions. In this case, just take $F(x) = \lfloor x/4 \rfloor$.2012-12-08
  • 0
    Yes I figured out that but is there any library that can do it for me?2012-12-08
  • 0
    Library? Are you talking about programming? Most languages have a floor() in their standard libraries...2012-12-08
  • 0
    @Karolis I think you forgot question..Given set of inequalities, is there any library that can return such function:2012-12-08
  • 0
    No, there is no such library because usually integer solutions of a set of inequalities cannot be written as a function. If you have some extra constraints on the inequalities, you should name them.2012-12-08

0 Answers 0