+5

# Challenge challenge

create a program which can resolve any equation of second degree or quadratic equation creer un programme pouvant resoudre toys led equation de second degre

1/28/2018 2:17:51 AM

Jeannot Richecarde

+6

https://code.sololearn.com/cgrAw7wh5Q4Q/?ref=app example

+11

he mean quadratic eqn [email protected]

+9

Please give example of input and output.

+6

example 4x^2+5x-1=0 we should find the value of x

+2

eg: ax^2 + bx + c = 0 where a, b, c are constants

+2

Yu miss something b^2-4ac/2a

+2

No prob

+2

I told yu this there will be no solution

+2

https://code.sololearn.com/ca17A8a17a49

+1

eg: ax^2 + bx + c = 0 where a, b, c are constants

+1

https://code.sololearn.com/cM735eg70Nmb/?ref=app Here's such code

+1

Ya bro sorry I fix it

0

Done bro try it now

0

https://code.sololearn.com/cM735eg70Nmb/?ref=app https://code.sololearn.com/cQMnj0UmZy5a/?ref=app

0

0

If pow(b,2)<0 there 's no solution

-1

It's not good

-1

X=(b-d)/2*a X2=(b+d)/2*a

-1

Jeannot Richecarde I think your maths is not so good . I am sorry to say like that. But square of any real number can't be positive so pow(b,2)<0 makes no sense.