Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
20% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~3K People Reached
Favorite Tags
c x 2
Member Avatar for matthewkeating

I am writing a script that solves a Quadratic equation. What I am doing wrong and why? The error I get is: [COLOR="Red"]Traceback (most recent call last): File "/home/matthew/Desktop/QuadraticSolver.py", line 5, in <module> c1 = (b * -1) + math.sqrt(((b*b) - 4*a*c) / 2*a) ValueError: math domain error[/COLOR] Here is …

Member Avatar for Gribouillis
0
608
Member Avatar for geeknick

[URL="http://graphingvariousfunctions.wordpress.com/2011/11/18/how-to-solve-linear-equations-in-10th-grade/"]Solving linear equations[/URL]? It says I have to solve -3k + 4 = 8k - 15 - 6k - 11 On the problem, do I combine like terms on one side first? Like the 8k and the 6k? If so do I add them or subtract them? Can someone please …

Member Avatar for WaltP
0
111
Member Avatar for geeknick

Is 2n+constant a good big o notation for a sorting algorithm? I have an assignment in a comp sci class to develop the fastest sort possible and found this to be the big o notation for my algorithm. The constant is based off the highest value in the sort.

Member Avatar for Rashakil Fol
0
102
Member Avatar for Rickay

[CODE]int main() { static short multiplycounter; static short dividecounter; double decimal; int rdecimal; cin >> decimal; rdecimal = int(decimal); cout << setprecision(10) << decimal << endl << rdecimal << endl; if(rdecimal % 1 != 0) { while(rdecimal % 1 != 0) { if(rdecimal % 1 == 0) { break; } …

Member Avatar for Rickay
0
622
Member Avatar for ciuchi

I have been searching for a solution to this problem: I'm given an expression in infix which can contain *,/,-,+ and I have to find the reduced form of this expression. Ex: Input: ((A+45)*16+(B-C)*D/4 )/8+ 55 Output: A*2+B*D/32-C*D/32 +145 All that can be calculated must be calculated and the simplest …

Member Avatar for ciuchi
0
1K
Member Avatar for The Dude

[url]http://www.blogthings.com/couldyoupasseighthgrademathquiz[/url] My results: [img]http://images.blogthings.com/couldyoupasseighthgrademathquiz/failed.jpg[/img] Only got 5/10 right :D

Member Avatar for xyfay
0
159