Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Quadratic Formula
//gcc 5.4.0 #include <stdio.h> int main(void) { //infix notation is 3+2 //prefix notation is (+2 3) //postfix notation (3 2 +) // y = ax**2+bx+c //Compute quadratic formula // [-b+/-squareroot(b**2-4ac)]/2*a double math = 3+5*6; double math1 = 3-2; double a=1; double b=0; double c=-1; double discrim=powf(b,2)-4*a*c; double x=sqrt(discrim); double solution1=(-b+x)/(2*a); double solution2=(-b-x)/(2*a); printf("solution1:%f\n", solution1); printf("solution1:%f\n", solution2); printf("math is %lf\n", math); printf("math1 is %lf\n", math1); return 0; }
run
|
edit
|
history
|
help
0
Encriptado cesar
merge two dice clay to head sport green globe attacked me seven of prime minister fired
C_141113_euclides
b=1,c=1
lab8part2final
MatrixMul_shortxshort
strend
Practice Problem 7
Assignment 7
Char data type.c