文章目录
Input
Output
Sample Input
Sample Output
二分......精度开大点....递减的.....
学会了exp()函数.....求e的n次方的.........
#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
const double eps=1e-9;
double p, q, r, s, t, u;
double gety(double x)
{
return p*exp(-x)+ q*sin(x) + r*cos(x) + s*tan(x) + t*x*x + u;
}
int main()
{
//freopen("in","r",stdin);
double low,high,mid;
w......
阅读全文