精英家教网 > 高中数学 > 题目详情

INPUT“Please input a,b,c=”;a,b,c

d=b*b-4*a*c

p=-b/(2*a)

IF d>=0 THEN

x1=p+q

x2=p-q

IF x1=x2 THEN

PRINT“One real root:”;x1

ELSE

PRINT“Two real roots:x1”;x1,“and x2”;x2

END IF

ELSE

PRINT“NO real root.”

END IF

END

上述是________的程序.

【注】

答案:一元二次方程的求根公式
练习册系列答案
相关习题

科目:高中数学 来源: 题型:

将下列程序用DO-LOOP UNTIL循环语句重新编写出来,并说明是解决的什么数学问题.
INPUT n
s=0
i=0
WHILE i<=n
s=s+i/(i+2)
i=i+1
WEND
PRINT s
END.

查看答案和解析>>

科目:高中数学 来源:数学教研室 题型:022

以下是用Scilab编写的程序,输出a,b的含义是________________.

a=input(“please give the first number”)

b=input(“please give the second number”)

while a<>b

   if a>=b

    a=a-b;

   else

    b=b-a;

  end

end

print(%io(2),a,b)

查看答案和解析>>

科目:高中数学 来源: 题型:022

以下是用Scilab编写的程序,输出a,b的含义是________________.

a=input(“please give the first number”)

b=input(“please give the second number”)

while a<>b

   if a>=b

    a=a-b;

   else

    b=b-a;

  end

end

print(%io(2),a,b)

查看答案和解析>>

科目:高中数学 来源: 题型:022

INPUT“Please input a,b,c=”;a,b,c

d=b*b-4*a*c

p=-b/(2*a)

IF d>=0 THEN

x1=p+q

x2=p-q

IF x1=x2 THEN

PRINT“One real root:”;x1

ELSE

PRINT“Two real roots:x1”;x1,“and x2”;x2

END IF

ELSE

PRINT“NO real root.”

END IF

END

上述是________的程序.

【注】

查看答案和解析>>

同步练习册答案