+ 6
I want to solve this question using python!
34xÂČ + 68x - 510 = 0 How can I solve this????
3 Answers
+ 10
Solve using quadratic formula.
http://www.purplemath.com/modules/quadform.htm
+ 6
first devide by 34
x**2 + 2x - 15
all is integer
factorize 15
5 * 3
the difference bt 5 and 3 is 2 ----> exactly the first koeffizient
x**2 +2x -15 = (x+3)(x-2)
x1 = -3
x2 = 2
easy for python
devide
factorize last
check if it fits
get sulution
only works for integer solutions
+ 3
You can use this to solve it
from math import sqrt
a = int(input())
b = int(input())
c = int(input())
print((lambda x,y,z: (-y+sqrt(y**2-4*x*z))/2*x) (a,b,c))
print((lambda x,y,z: (-y-sqrt(y**2-4*x*z))/2*x) (a,b,c))