>>408
x=0.86033358902
ソース
#include <stdio.h>
#include <math.h>
double f(double x){
return x*tan(x)-1.0;
}
int main(void){
double sol=0.0,step=1.0/16.0;
while( fabs(f(sol))>fabs(1.0E-11*sol)){
while( f(sol+step)<0.0 ) sol+=step;
printf("途中経過:x=%12.11lf 1.0/x-tan(x)=%12.11lf¥n",sol, f(sol)/sol);
step/=2.0;
}
printf("x=%12.11lf¥n",sol);
return 0;
}