So I'm running a segment of code (posted below and it produces a NaN when running (the code I'm running is just producing an answer that can be either negative or positive (quadratic basically)))
public double quadratic(int a, int b, int c)
{
double quadratic = Math.pow(def, 2) - 4*def*def;
return((-1*b + Math.sqrt(quadratic)) / 2*a);
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…