#include "stdio.h"
#include "math.h"
double f(double x)
{
return pow(2,x)+3*x-7;
}
int main()
{
int i,j;
double low,mid,high;
low=-2;high=3;
while(low0)
high=mid;
else
low=mid;
}
printf("%lfn",(low+high)/2);
return 0;
}
#include "stdio.h"
#include "math.h"
double f(double x)
{
return pow(2,x)+3*x-7;
}
int main()
{
int i,j;
double low,mid,high;
low=-2;high=3;
while(low0)
high=mid;
else
low=mid;
}
printf("%lfn",(low+high)/2);
return 0;
}