+ 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
19 Antworten
+ 11
he mean quadratic eqn solver@Louis
+ 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
+ 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
It's not good
0
Here's the solutions I made
0
If pow(b,2)<0 there 's no solution
- 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.