01-17-2012, 04:22 PM
Either way your equations are wrong, remember that order of operation comes into play, so USE BRACKETS where ever applicable to make sure that certain numbers get calculated first over others:
This is wrong anyway:
where does the -1 come in? and
-4ac != -1*4*a*c
that would do:
= -4
= -4a
= c(-4a)
This is wrong anyway:
Code:
s=(b*b)-1*4*a*c;
where does the -1 come in? and
-4ac != -1*4*a*c
that would do:
= -4
= -4a
= c(-4a)