From: Peter Vandenabeele Date: 2012-02-10T02:04:54+09:00 Subject: Re: why doesn't work --00235446fd44b87e3504b88b02c8 Content-Type: text/plain; charset=UTF-8 On Thu, Feb 9, 2012 at 4:17 PM, luk malcik wrote: > def pierw > x1 = -(b - (Math.sqrt(@d))/2*a) > If this is supposed to be the solutions of a.x^2 + b.x + c = 0, then it would be x1 = -(b + Math.sqrt(discriminator))/(2*a) x2 = -(b - Math.sqrt(discriminator))/(2*a) I think you have a bracket wrong ... HTH, Peter -- *** Available for a new project *** Peter Vandenabeele http://twitter.com/peter_v http://rails.vandenabeele.com http://coderwall.com/peter_v --00235446fd44b87e3504b88b02c8--