I am using a template code for curve fitting and I am curious how I modify it to add a 1/Y^2 weighting any advice would be appreciated or explanation on the math behind this wei