double code(double F, double l) {
return (((double) M_PI) * l) - ((1.0 / (F * F)) * tan((((double) M_PI) * l)));
}
↓
double code(double F, double l) {
double t_0 = pow(((double) M_PI), 3.0) * 0.3333333333333333;
double t_1 = (0.008333333333333333 * pow(((double) M_PI), 5.0)) - ((pow(((double) M_PI), 5.0) * 0.041666666666666664) + (pow(((double) M_PI), 2.0) * (-0.16666666666666666 * pow(((double) M_PI), 3.0))));
double t_2 = F * ((t_1 / pow(((double) M_PI), 2.0)) + -(0.1111111111111111 * (pow(((double) M_PI), 6.0) / pow(((double) M_PI), 3.0))));
double t_3 = F / pow(((double) M_PI), 2.0);
double tmp;
if ((((double) M_PI) * l) <= -2e+16) {
tmp = l * ((double) M_PI);
} else if ((((double) M_PI) * l) <= -4e-26) {
tmp = (((double) M_PI) * l) - ((2.0 / F) * ((0.5 / F) * tan((((double) M_PI) * l))));
} else {
tmp = (((double) M_PI) * l) - (1.0 / (F * (((F / l) / ((double) M_PI)) + (-1.0 * ((pow(l, 3.0) * t_2) + ((pow(l, 5.0) * ((((-0.0001984126984126984 * pow(((double) M_PI), 7.0)) - ((pow(((double) M_PI), 4.0) * (pow(((double) M_PI), 3.0) * 0.013888888888888888)) + ((pow(((double) M_PI), 7.0) * -0.001388888888888889) + (t_1 * (-0.5 * pow(((double) M_PI), 2.0)))))) * t_3) + -(t_0 * ((t_2 / ((double) M_PI)) + (F * (t_1 / pow(((double) M_PI), 3.0))))))) + (l * (t_0 * t_3))))))));
}
return tmp;
}
public static double code(double F, double l) {
return (Math.PI * l) - ((1.0 / (F * F)) * Math.tan((Math.PI * l)));
}
↓
public static double code(double F, double l) {
double t_0 = Math.pow(Math.PI, 3.0) * 0.3333333333333333;
double t_1 = (0.008333333333333333 * Math.pow(Math.PI, 5.0)) - ((Math.pow(Math.PI, 5.0) * 0.041666666666666664) + (Math.pow(Math.PI, 2.0) * (-0.16666666666666666 * Math.pow(Math.PI, 3.0))));
double t_2 = F * ((t_1 / Math.pow(Math.PI, 2.0)) + -(0.1111111111111111 * (Math.pow(Math.PI, 6.0) / Math.pow(Math.PI, 3.0))));
double t_3 = F / Math.pow(Math.PI, 2.0);
double tmp;
if ((Math.PI * l) <= -2e+16) {
tmp = l * Math.PI;
} else if ((Math.PI * l) <= -4e-26) {
tmp = (Math.PI * l) - ((2.0 / F) * ((0.5 / F) * Math.tan((Math.PI * l))));
} else {
tmp = (Math.PI * l) - (1.0 / (F * (((F / l) / Math.PI) + (-1.0 * ((Math.pow(l, 3.0) * t_2) + ((Math.pow(l, 5.0) * ((((-0.0001984126984126984 * Math.pow(Math.PI, 7.0)) - ((Math.pow(Math.PI, 4.0) * (Math.pow(Math.PI, 3.0) * 0.013888888888888888)) + ((Math.pow(Math.PI, 7.0) * -0.001388888888888889) + (t_1 * (-0.5 * Math.pow(Math.PI, 2.0)))))) * t_3) + -(t_0 * ((t_2 / Math.PI) + (F * (t_1 / Math.pow(Math.PI, 3.0))))))) + (l * (t_0 * t_3))))))));
}
return tmp;
}
def code(F, l):
return (math.pi * l) - ((1.0 / (F * F)) * math.tan((math.pi * l)))
↓
def code(F, l):
t_0 = math.pow(math.pi, 3.0) * 0.3333333333333333
t_1 = (0.008333333333333333 * math.pow(math.pi, 5.0)) - ((math.pow(math.pi, 5.0) * 0.041666666666666664) + (math.pow(math.pi, 2.0) * (-0.16666666666666666 * math.pow(math.pi, 3.0))))
t_2 = F * ((t_1 / math.pow(math.pi, 2.0)) + -(0.1111111111111111 * (math.pow(math.pi, 6.0) / math.pow(math.pi, 3.0))))
t_3 = F / math.pow(math.pi, 2.0)
tmp = 0
if (math.pi * l) <= -2e+16:
tmp = l * math.pi
elif (math.pi * l) <= -4e-26:
tmp = (math.pi * l) - ((2.0 / F) * ((0.5 / F) * math.tan((math.pi * l))))
else:
tmp = (math.pi * l) - (1.0 / (F * (((F / l) / math.pi) + (-1.0 * ((math.pow(l, 3.0) * t_2) + ((math.pow(l, 5.0) * ((((-0.0001984126984126984 * math.pow(math.pi, 7.0)) - ((math.pow(math.pi, 4.0) * (math.pow(math.pi, 3.0) * 0.013888888888888888)) + ((math.pow(math.pi, 7.0) * -0.001388888888888889) + (t_1 * (-0.5 * math.pow(math.pi, 2.0)))))) * t_3) + -(t_0 * ((t_2 / math.pi) + (F * (t_1 / math.pow(math.pi, 3.0))))))) + (l * (t_0 * t_3))))))))
return tmp
code[F_, l_] := N[(N[(Pi * l), $MachinePrecision] - N[(N[(1.0 / N[(F * F), $MachinePrecision]), $MachinePrecision] * N[Tan[N[(Pi * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[F_, l_] := Block[{t$95$0 = N[(N[Power[Pi, 3.0], $MachinePrecision] * 0.3333333333333333), $MachinePrecision]}, Block[{t$95$1 = N[(N[(0.008333333333333333 * N[Power[Pi, 5.0], $MachinePrecision]), $MachinePrecision] - N[(N[(N[Power[Pi, 5.0], $MachinePrecision] * 0.041666666666666664), $MachinePrecision] + N[(N[Power[Pi, 2.0], $MachinePrecision] * N[(-0.16666666666666666 * N[Power[Pi, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(F * N[(N[(t$95$1 / N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision] + (-N[(0.1111111111111111 * N[(N[Power[Pi, 6.0], $MachinePrecision] / N[Power[Pi, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision])), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(F / N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(Pi * l), $MachinePrecision], -2e+16], N[(l * Pi), $MachinePrecision], If[LessEqual[N[(Pi * l), $MachinePrecision], -4e-26], N[(N[(Pi * l), $MachinePrecision] - N[(N[(2.0 / F), $MachinePrecision] * N[(N[(0.5 / F), $MachinePrecision] * N[Tan[N[(Pi * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(Pi * l), $MachinePrecision] - N[(1.0 / N[(F * N[(N[(N[(F / l), $MachinePrecision] / Pi), $MachinePrecision] + N[(-1.0 * N[(N[(N[Power[l, 3.0], $MachinePrecision] * t$95$2), $MachinePrecision] + N[(N[(N[Power[l, 5.0], $MachinePrecision] * N[(N[(N[(N[(-0.0001984126984126984 * N[Power[Pi, 7.0], $MachinePrecision]), $MachinePrecision] - N[(N[(N[Power[Pi, 4.0], $MachinePrecision] * N[(N[Power[Pi, 3.0], $MachinePrecision] * 0.013888888888888888), $MachinePrecision]), $MachinePrecision] + N[(N[(N[Power[Pi, 7.0], $MachinePrecision] * -0.001388888888888889), $MachinePrecision] + N[(t$95$1 * N[(-0.5 * N[Power[Pi, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$3), $MachinePrecision] + (-N[(t$95$0 * N[(N[(t$95$2 / Pi), $MachinePrecision] + N[(F * N[(t$95$1 / N[Power[Pi, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision])), $MachinePrecision]), $MachinePrecision] + N[(l * N[(t$95$0 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]