From: Chad Perrin Date: 2007-03-05T17:38:56+09:00 Subject: Re: Maths in Ruby On Mon, Mar 05, 2007 at 05:34:25PM +0900, Pit Capitain wrote: > Yannick Grams schrieb: > >I have a mathematic problem I need to solve, and it involves finding the > >values of three consecutive numbers, x, y and z. I need to be able to > >find every instance of these from negative one million (-1,000,000) up > >to one million (1,000,000). They must follow the following equations: > > > >x + y + z = 5 > >x + y - z = 7 > >(x - y)(x - y)(x - y) + (y - z)(y - z)(y - z) = (x - z)(x - z)(x - z) > > > >I'm completely and utterly stumped. I intend on solving this via Ruby, > >as doing it on pen and paper might take a while. ;) If anyone has any > >suggestions, I'd love to hear them. > > Yannick, you don't need Ruby to solve this, just some basic Mathematics. I'm glad you think so. I, for one, am still not sure exactly what the requirements are for the proposed problem -- or, more to the point, exactly what the problem is. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "The first rule of magic is simple. Don't waste your time waving your hands and hopping when a rock or a club will do." - McCloctnick the Lucid