> 数学 >
二分法 方程 x3+5=o的近似值,精确度为0.1
人气:177 ℃ 时间:2020-01-28 12:35:48
解答
#include#includefloat f(float x){ float y; y=2*5-4*2+3*x-6;//自定义方程 return(y);}float xpoint(float x1,float x2){ float y; y=(x1*f(x2)-x2*f(x1))/(f(x2)-f(x1));//求 x轴点 交点坐标 return(y);}float ro...
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版