import uncertainties as unc
from uncertainties import umath
from uncertainties import ufloat

A = ufloat(4.247103911889225 , 1.5593029960637942e-05)
A = ufloat(4.0954333180883875 , 1.5998943484948535e-05)
A = ufloat(4.043971118379501 , 1.538374072713651e-05)
A = ufloat(4.002792035145802 , 1.5815542244772508e-05)
A = ufloat(3.9754582072166484 , 1.625563846435341e-05)

B = ufloat(-0.004362432490577585 , 1.188359904884618e-06)
B = ufloat(-0.019908246629818976 , 1.5302613898363654e-06)
B = ufloat(-0.024887209914199848 , 1.3422141921324754e-06)
B = ufloat(-0.11479500960529976 , 4.029716989100273e-05)
B = ufloat(-0.07513696212621154 , 4.33447158709406e-06)

R1 = ufloat(18,0.9)
R2 = ufloat(27,1.35)

efficiency = (B**2/R2)/(A**2/R1)
print(efficiency)

#7.033644366118431e-07+/-4.973685278731813e-08
#1.575342708825979e-05+/-1.1139381515027209e-06
#2.524905174073671e-05+/-1.7853796579882413e-06
#0.0005483132042460096+/-3.877350975943503e-05
#0.0002381450838806993+/-1.6839422900101574e-05