I need to code y= (-b + (b^2 – 4ac)^1/2 )/2a
Variables a,b,c,and y are of type float.
And for this code the square root is exactly the same as it is IRL, like Sqrt 16=4
Thanks alot
I need to code y= (-b + (b^2 – 4ac)^1/2 )/2a
Variables a,b,c,and y are of type float.
And for this code the square root is exactly the same as it is IRL, like Sqrt 16=4
Thanks alot
So, what have you tried?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
idk how to code it, so i haven't tried anything!!
Start with showing us how you would write the expression (b^2 – 4ac) as C++ code. If you cannot do that, then you need to re-read your learning material.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
fairly simple...break it up into parts. like for instance code the parenthesis first then move outwards till you've finished it.
We shouldn't be quick to criticize unless we can do better.
Code:public function __clone() { die ( "I'm one of a kind" ); }