From: Stefano Crocco Date: 2007-01-06T04:16:12+09:00 Subject: Re: Problem solving quadratic equations Alle 20:05, venerd狸 5 gennaio 2007, Jay Bornhoft ha scritto: > I have to remember to KISS! > > Thx! > > > Btw, is there a way to get the same 'def' to process both the positive > and negative 'x' values? > def solve(a,b,c,sign) #pass +1 or -1 as sign -b +(sign)*Math.sqrt(b**2-4*a*c) / 2*a end