sqrt(b*b - 1/(4*a*c))
------------------
or
void main(void)
{
float a,b,c;
float x,y,z;
float precision = 0.000001;
printf(c\nPlease input the the value of a.\n");
scanf("%f",&a);
printf("\n");
printf("\nPlease input the the value of b.\n");
scanf("%f",&b);
printf("\n");
printf("\nPlease input the the value of c.\n");
scanf("%f",&c);
printf("\n");
x = b*b;
y = 4*a*c;
if( (y < precision) && (y > -precision ) )
{
printf("\n4ac is too closed to zero,can not get the result of b*b - 1/(4ac)\n");
return;
}
z = x - 1/y;
if( z < precision )
{
printf("\nb*b - 1/(4ac) is less than zero,can not get the result of b*b - 1/(4ac).\n");
return;
}
printf("\nb*b - 1/(4ac) = \n%f\n",sqrt(z) );
return;
}
框圖"里的內(nèi)容,我不太懂這個,想問你們下,根號b^2-1/4ac寫成程序語句表達式是?
框圖"里的內(nèi)容,我不太懂這個,想問你們下,根號b^2-1/4ac寫成程序語句表達式是?
數(shù)學(xué)人氣:492 ℃時間:2020-05-10 14:32:36
優(yōu)質(zhì)解答
我來回答
類似推薦
- (-b±根號下b^2-4ac)/4a是求什么的公式
- x²-(根號3+根號2)x+根號6=0 用公式法怎么解?例:“b²-4ac”
- (2a分之-b+根號b平方-4ac)(2a分之-b-根號b平方-4ac)其中b平方-4ac>0
- 2a分之負b加減根號下b方減4ac這個公式在什么情況下使用
- 已知x1=(-b+根號(b^2-4ac))/2a,x2=(-b-根號(b^2-4ac))/2a
- 一元一次方程x2+(2m-1)x+m2=0,有兩個實數(shù)根x1,x2 (1)求實數(shù)m的取值范圍 (2)當(dāng)x12-x22=0時,求m
- 城市污染對人類有何危害
- ______ a lot of books,the boy knows much more than the boys of his age.
- Lucy often does her homework at school改為一般疑問句
- 我父親似乎很高興.My father ___ ___ ____ happy.
- much to 和 many 區(qū)別
- You are my little little apple~誰會翻譯吶
猜你喜歡
- 1描寫霧海 的四字詞語
- 2填空1:he always gets to school by s( ).2:it is ten minutes h( ) from my home to school
- 3我國唯一注入北冰洋的河流是哪條河流
- 4就是做題時候在化學(xué)式下方量的書寫方法.1:1的含義、
- 5將50mL4mol/L的AlCl3溶液與4mol/L的NaOH溶液反應(yīng)后得沉淀7.8g,所消耗NaOH溶液的體積為多少mL?
- 6幾個數(shù)的最大公因數(shù)是最小公倍數(shù)的()數(shù),幾個數(shù)的最小公倍數(shù)是最大公因數(shù)的()數(shù)
- 7需要英語的春節(jié)短語!
- 8酸根離子指什么?
- 9求解軌跡問題
- 10設(shè)f(x)=ax^2+bx+c(a≠0) ; 若f(x+1)=f(-x),求證-b/2a=1
- 11英語翻譯
- 12怎么做啊?要過程.某電視機廠某型號電視比去年增產(chǎn)40%,實際比計劃多生產(chǎn)20%,此型號電視今年實際產(chǎn)量是去年的( )%?