#include using namespace std; int main() { int m; scanf("%d", &m); while(m--) { long double a, b, t, w, ew; scanf("%Lf%Lf%Lf", &a, &b, &t); if (!b) { printf("%.12Lf\n", powl(t, 1 / a)); continue; } t = powl(t, 1 / b); if (!a) { printf("%.12Lf\n", expl(t)); continue; } t *= a / b; w = 0; for (int i = 0; i < 8; ++i) { ew = expl(w); w -= (w * ew - t) / (ew * (w + 1) - (w + 2) * (w * ew - t) / (2 * w + 2)); } printf("%.12Lf\n", expl(w * a / b)); } return 0; }