Hi friends,

Please help me…

making a little program for kids im tutoring to give them axis of symmetry, vertex and roots of a quadratic equation when they give the coefficients a, b, and c. AofS and vertex work, but roots aren’t getting the right answers for whatever reason. it should run the quadratic equation

(-b (plus/mius) radical(b^2 - 4ac)) / 2a

here is the offending line:

if (calc==‘roots’) {

textstring += 'The roots are: ’ + (((-1 * value[B])) + ( Math.sqrt( (Math.pow(value[B],2))-(4*value[A] value… ) ) /(2value[A])) + ‘and’ + (((-1 * value[B])) - ( Math.sqrt((Math.pow(value[B],2))-(4*valu… ) /(2*value[A])) + ‘<b> (Note: a value of NaN means that there are no roots)</b>’;

}

## can anyone find whats wrong?

ps. this is my first javascript project

[b]Diamond Engagement Rings[/b]

[b]Loose Diamonds[/b]

[b]Wedding Rings - DreamStone[/b]