From: James Edward Gray II Date: 2007-08-26T05:35:05+09:00 Subject: Re: Combinations of numbers/operators? On Aug 25, 2007, at 3:25 PM, Donald Patch wrote: > Here's a related question: is there a math library in Ruby that would > allow me to "solve for" a given number given several inputs? For > example, I have the number 20 and want to know what combinations of > 1,2,3,4 would yield this result? There was an old Ruby Quiz for a problem like this: http://www.rubyquiz.com/quiz7.html Maybe the solutions will give you some ideas. James Edward Gray II