def b_left(r1, r2): r3, f3 = bb.b_mul(m, r1, r2) r5, f5 = bb.b_part(r3, bb.b_gr(r2) - bb.b_gr(r1)) return r5, f3 * f5
def b_inn(r1, r2): r3, f3 = bb.b_mul(m, r1, r2) r5, f5 = bb.b_part(r3, abs(bb.b_gr(r1) - bb.b_gr(r2))) return r5, f3 * f5
def b_out(r1, r2): r3, f3 = bb.b_mul(m, r1, r2) r5, f5 = bb.b_part(r3, bb.b_gr(r1) + bb.b_gr(r2)) return r5, f5 * f3
def b_left(r1,r2): r3,f3 = bb.b_mul(m, r1, r2) r5,f5 = bb.b_part(r3, bb.b_gr(r2)-bb.b_gr(r1)) return r5, f3*f5
def b_inn(r1,r2): r3,f3 = bb.b_mul(m, r1, r2) r5,f5 = bb.b_part(r3, abs(bb.b_gr(r1)-bb.b_gr(r2))) return r5, f3*f5
def b_out(r1,r2): r3,f3 = bb.b_mul(m, r1, r2) r5,f5 = bb.b_part(r3, bb.b_gr(r1)+bb.b_gr(r2)) return r5, f5*f3