chevron_left chevron_right

• 0 Vote(s) - 0 Average

 Beginner Challenge | Quadratic formula Solver filter_list Linear Mode Threaded Mode View a Printable Version Author Message
Beginner Challenge | Quadratic formula Solver #1
Solve for x and takes input on a b and c.

Solution
Spoiler:
Code:
```import math a = int(raw_input('Please input a: ')) b = int(raw_input('Please input b: ')) c = int(raw_input('Please input c: ')) print "x = " + str((b * -1 + math.sqrt(b**2 - 4*a*c))/ 2 * a) + ", " + str((b * -1 - math.sqrt(b**2 - 4*a*c))/ 2 * a)```
#MakeSinisterlySexyAgain

RE: Beginner Challenge | Quadratic formula Solver #2
I can already almost solve a math equation with the quadratic formula.
Me and Lux are the realest users here.
[STAFF DETERMINED SIGNATURE AS LEWD]
JDM>USDM

RE: Beginner Challenge | Quadratic formula Solver #3

Beginner Challenge | Quadratic formula Solver #4
(11-15-2013, 01:59 AM)Oni Wrote: Not bad. I remember I used to hate the quadratic formula.

What math are you taking right now? I hope to never have to see the formula again after high school. I made this just for some practice in Py as I'm brushing up on my skills for some autopwn code I'll release soon for SL eyes only.
#MakeSinisterlySexyAgain

RE: Beginner Challenge | Quadratic formula Solver #5
Importing "from math import sqrt" and then using sqrt instead of math.sqrt throws a "math domain" error. Any ideas why?
(Using python 2.7)
Pay respects to the malformed SYN packet.

Beginner Challenge | Quadratic formula Solver #6
(11-16-2013, 04:29 AM)The_Joker Wrote: Importing "from math import sqrt" and then using sqrt instead of math.sqrt throws a "math domain" error. Any ideas why?
(Using python 2.7)

You imputed incalculable numbers.
#MakeSinisterlySexyAgain

RE: Beginner Challenge | Quadratic formula Solver #7
(11-15-2013, 02:03 AM)Putin Wrote: What math are you taking right now? I hope to never have to see the formula again after high school. I made this just for some practice in Py as I'm brushing up on my skills for some autopwn code I'll release soon for SL eyes only.
You will see it again in college, sadly.
PGP
Sign: F202 79C9 76F7 40BB 54EC 494F 5DEF 1D70 14C1 C4CC
Encrypt: A5B3 1B21 55E1 80AF 4C6E DE83 467B 8EFC 3DEE 681C
Auth: CD55 E8A5 1A08 2933 8BA6 BC88 D81F 1943 739A 3C47

RE: Beginner Challenge | Quadratic formula Solver #8
Only if your math requirement wasn't met in high school for some reason.

Beginner Challenge | Quadratic formula Solver #9
I'll be done with Calc in HS.
#MakeSinisterlySexyAgain

RE: Beginner Challenge | Quadratic formula Solver #10
(11-17-2013, 12:35 AM)Putin Wrote: I'll be done with Calc in HS.

Do you feel special? I finished Calc 2 in 11th grade, I had buddies who finished it in 9th grade, and the whole bunch still slays more poon than you..

Users browsing this thread: 1 Guest(s)