Iterative Root by rotary-o

i,n;float x,d;main(a){for(;i||~scanf("%d,%d,%f",&a,&n,&x);i=d*1e3,printf("%.3f%c",x+1e-5,i?44:10))x+=d=(a/pow(x,n-1)-x)/n;}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page