0 Members and 1 Guest are viewing this topic.
{1.-1sum(L1Ans)sum(L2Ans->AL1(1)L2(1->Bsum(L1)sum(L2->C.5(C-A{B,Ans,Ans+A-B->L10->CL1e-5->L1 ;engineering EFor(K,1,3C+L1(k->L1(Ke-5int(Ans->CEndC->L1(4e5fPart(L1->L1
def sqr3(a, b, c): d = a + b + c # roughly 75% of cases exceed the original bit-width e = a - b + c # roughly 1/6 of the time this will exceed the original bit-width. However, whenever this exceeds the bit-width, then d also exceeds it. d *= d e *= e d = (d + e) / 2 e = d - e f = (a + b - c) * (a - b - c) # it is never the case that both multiplicands exceed their original word width, but about 1/3 of the time, one of them exceeds it (~2/3 of the time, neither exceed). b *= (a - c) # neither multiplicand exceeds the original bit-width (though the second operand may become negative). b += b a *= a e = (e + b) / 2 b = e - b d = (d - f) / 2 f += d - a return [a, e, d, b, f]