求x^3-15x^2+16x-80一个实根,下面程序怎么算不出来#include#includefloat f(float x){return ((x-5)*x-16)*x-80;}float xpoint(float x1,float x2){return (x1*f(x2)-x2*f(x1))/(f(x2)-f(x1));}float root(float x1,float x2){float x,y,y1;y1=f(x1);do{

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/07 03:49:16

求x^3-15x^2+16x-80一个实根,下面程序怎么算不出来#include#includefloat f(float x){return ((x-5)*x-16)*x-80;}float xpoint(float x1,float x2){return (x1*f(x2)-x2*f(x1))/(f(x2)-f(x1));}float root(float x1,float x2){float x,y,y1;y1=f(x1);do{
求x^3-15x^2+16x-80一个实根,下面程序怎么算不出来
#include
#include
float f(float x)
{
return ((x-5)*x-16)*x-80;
}
float xpoint(float x1,float x2)
{
return (x1*f(x2)-x2*f(x1))/(f(x2)-f(x1));
}
float root(float x1,float x2)
{
float x,y,y1;
y1=f(x1);
do
{
x=xpoint(x1,x2);
y=f(x);
if(y*y1>0)
{
y1=y;x1=x;
}
else
{x2=x;}
}while(fabs(y)>0.00001);
return x;
}
void main()
{
float x,x1,x2,y1,y2;
do
{
scanf("%f,%f",&x1,&x2);
y1=f(x1);
y2=f(x2);
}while(y1*y2>0);
x=root(x1,x2);
printf("A root is %f\n",x);
getch();
}
是我最上面的函数表达式写错啦,本来应该是“-”号,所以程序里面的函数应该是对的,你看看如果按照“-”号来做我的程序又不有问题,要是没有的话你看看最后结果是多少,我需要结果!

求x^3-15x^2+16x-80一个实根,下面程序怎么算不出来#include#includefloat f(float x){return ((x-5)*x-16)*x-80;}float xpoint(float x1,float x2){return (x1*f(x2)-x2*f(x1))/(f(x2)-f(x1));}float root(float x1,float x2){float x,y,y1;y1=f(x1);do{
你的f函数的表达式写错了.应该是:
float f(float x)
{
return ((x-15)*x+16)*x-80;
}
我要是没有看错的话,你应该用的是牛顿弦切法吧?
如果是这样的话:x^3-15x^2+16x-80=0 那么,
X1=14.2716697265195
X2=0.364165136740241+2.3394218598286*i
X3=0.364165136740241-2.3394218598286*i
如果是这样的话:x^3-15x^2-16x-80=0 那么,
X1=16.2842317770781
X2=-0.64211588853906+2.12141818110309*i
X3=-0.64211588853906-2.12141818110309*i
如果是这样的话:x^3-5x^2+16x-80=0 那么,
X1=5
X2=4*i
X3=-4*i
如果是这样的话:x^3-5x^2-16x-80=0 那么,
X1=8.16146306754548
X2=-1.58073153377274+2.70248994139071*i
X3=-1.58073153377274-2.70248994139071*i

一个“整式的乘法”的问题请先阅读下列解题过程,再仿做下面的问题.已知X*X + X - 1=0,求X*X*X + 2*X*X + 3的值.解X*X*X + 2X*X +3=X*X*X +X*X -X +X*X +X +3=X{X*X +X -1} +X*X +X -1 +4=0+0+4=4+ x + X*X + X*X*X=0.+ X*X + X*X*X x*x+2x+x*x+10x+x*x+25+2x+x*x+1+1+16+x*x+4x*x+9-12x+16x*x+4-16x=30x*x-7x-15 求x,可以只要答案.如图,全是正方形,一个边长为1,一个边长为4,求总面积,你也可以用你的方法.上面那个方程是我列的.5x*X+7X-72=0 x(x*x-6x-9)-x(x*x-8x-15)+2x(3-x) 求余数1.(x平方-2x+3)除以(2x+3)2.(x五次方-1)除以(x-2)3.21x五次+33x四次-70x三次+21x平方+x-1)除以x分解因式2x三次+5x平方2x-94x三次-15x平方+8x+3x四次-5x三次+20x-16x四次-2x平方+3x-2x五次-10x平方+15x-6若有若( x^2-8x+13=0求(x^4-16x^3+61x^2+24x+2)/(x 62-8x+15)kkkkkkkkkkkkkkkkkkkkkkk 设x= -5/2,求6x+(x/x-2 - x/x+2)/4x/x^4-2x^3+8x-16的值 (3+2x)/(2-x)+(3x-2)/(x+2)+(x^2-16x)/(4-x^2)求过程 4x-15=3x-16?4x-15=3x-16求x````` F(X)=(x+1)(x+3)(2+x)(x+4)+15求值域. 已知x=13/(4+根号3),求(x^4-6x^3-2x^2+18x+23)/(x^2-8x+15) 的值 禁止复制粘贴:x=13/(4+√3)=4-√3√3=4-x3=x²-8x+16x^2-8x+13=0,所以x^2-8x+15=2;x^4-6x^3-2x^2+18x+23=x^2(x^2-8x+13)+2x^3-15x^2+18x+23=2x(x^2-8x+13)+x^2-8x+23=x^2-8x+2 已知 X=4- 根号3 求 (X*X*X*X-6X*X*X-2X*X+18X+23) / (X*X-8X+15)的值紧急,,明天有用,, x+3x+x-2+x+x+50%x=188 求x x(x+1)+(x+2)+(x+3)+(x+4)+(x+5) = 27求x 求一个数独答案X X X 9 X X X 8 2 X 6 3 X X 1 4 X 99 X 8 X X X X X XX X X 6 7 X 3 X XX 4 6 X 5 X 2 9 XX X 7 X 2 3 X X XX X X X X X 7 X 17 X 4 3 X X 6 2 X6 3 X X X 7 X X X 一个多项式(6x^5-15x^4+3x^3-3x^2+x+1)除以(3x^2)的余式是x+1,求商式.若1+x+x^2+x^3=0,求x+x^2+x^3+……x^2004的值,我急用, X·X+3X+5=6 2-3X-9X=?求后面一个算式的值, 求x^3-15x^2+16x-80一个实根,下面程序怎么算不出来#include#includefloat f(float x){return ((x-5)*x-16)*x-80;}float xpoint(float x1,float x2){return (x1*f(x2)-x2*f(x1))/(f(x2)-f(x1));}float root(float x1,float x2){float x,y,y1;y1=f(x1);do{ x-o.8x=6 12x-8x=4.8 3x-8=16 7.5x-2x x-0.7x=3.6 求答案