Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with this little program
#4
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:
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)
Reply


Messages In This Thread
Need help with this little program - by Clones - 01-17-2012, 03:22 AM
RE: Need help with this little program - by AceInfinity - 01-17-2012, 04:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)