Dilbert, I made a C++ program to work out the answer for the question you posted in quotes. I assume you have to find the right X and Y values that make the "X" on the left hand side (that I assume is a different X, otherwise it makes little sense) a maximum or minimum value. The maximum value is 27 when Y = 9 and X = 0 and the minimum value is 0 when both equal zero. Although it's fairly easy to solve just by looking at it. Try posting a more difficult equation to solve, so I can prove once and for all that itteratertive something methods rule the world, MuWaHaHaHa