C语言用牛顿迭代法求方程(xe^x)-1=0在0.5附近的近似根,要求精确到10^-5
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/10/05 08:37:11
C语言用牛顿迭代法求方程(xe^x)-1=0在0.5附近的近似根,要求精确到10^-5
明天就考试了
明天就考试了
#include
#include
int main(){
double diedai(double e,double x);
double e,x ;
x=0.5;
printf("输入系数e:") ;
scanf("%lf",&e) ;
x=diedai(e,x);
printf("x = %.2lf", x) ;
return 0;
}
double diedai(double e,double x){
while(abs(x*pow(e,x)-1)>pow(10,-5)){
x=x-(pow(e*x,x))/(pow(e,x)*(1+x));
}
return x;
}
#include
int main(){
double diedai(double e,double x);
double e,x ;
x=0.5;
printf("输入系数e:") ;
scanf("%lf",&e) ;
x=diedai(e,x);
printf("x = %.2lf", x) ;
return 0;
}
double diedai(double e,double x){
while(abs(x*pow(e,x)-1)>pow(10,-5)){
x=x-(pow(e*x,x))/(pow(e,x)*(1+x));
}
return x;
}
C语言用牛顿迭代法求方程(xe^x)-1=0在0.5附近的近似根,要求精确到10^-5
这道题怎么写 用迭代法和牛顿法求解方程x=e-x在x=0.5附近的一个根,要求精确到小数点后三位
用迭代法和牛顿法求解方程x=e^x在x=0.5附近的一个根,要求精确到小数点后三位
用迭代法求方程的根C语言编程:用迭代法求方程X的3次方-X的平方-1=0在X=1.5附近的根.要求误差小于10的-6次方
C语言编程,用牛顿抚迭代法求方程2X*X*X-4X*X+3X-6=0在1.5附近的根
x^3-x-1=0在vb中用牛顿迭代法求在1.5附近的跟,精确到0.5*10^-3 求代码.
用C语言求牛顿迭代法求方程4x3-8x2+6x-12=0在1.5附近的根
用牛顿迭代法求方程3*x*x*x-4x^2-5x+13=0在x=1附近的根,要求精度为10^-6
用C语言编程求牛顿迭代法求方程f(x)=0的根.(
C语言编程,用牛顿抚迭代法求方程2X*X*X-4X*X+3X-6=0在1.5附近的根(采用切线逼近法求根)
怎么用VB编写这么一个程序:用牛顿迭代法求方程x^5-3*x^2+2*x+1=0在x0 = 0附近的根(要求用Do语句)
用牛顿迭代法求方程的根:lg(x)+x-2=0.用C语言,