static void LibreConvert(ref LeastSquaresFit.LSFStrings data, int fontSize) { data.IndSum = LibreMathConverter.EquationToLibre(data.IndSum, fontSize); data.IndPowerSum = LibreMathConverter.EquationToLibre(data.IndPowerSum, fontSize); data.DeSum = LibreMathConverter.EquationToLibre(data.DeSum, fontSize); data.CrossSum = LibreMathConverter.EquationToLibre(data.CrossSum, fontSize); data.UncertPowerSum = LibreMathConverter.EquationToLibre(data.UncertPowerSum, fontSize); data.SlopeEquation = LibreMathConverter.EquationToLibre(data.SlopeEquation, fontSize); data.InterceptEquation = LibreMathConverter.EquationToLibre(data.InterceptEquation, fontSize); data.YUncertEquation = LibreMathConverter.EquationToLibre(data.YUncertEquation, fontSize); data.InterceptUncertEquation = LibreMathConverter.EquationToLibre(data.InterceptUncertEquation, fontSize); data.SlopeUncertEquation = LibreMathConverter.EquationToLibre(data.SlopeUncertEquation, fontSize); }
//eventually it would be nice to hide this crap behind an interface static void LatexConvert(ref LeastSquaresFit.LSFStrings data, string fontSize) { data.IndSum = LatexConverter.ToLatex(data.IndSum, fontSize); data.IndPowerSum = LatexConverter.ToLatex(data.IndPowerSum, fontSize); data.DeSum = LatexConverter.ToLatex(data.DeSum, fontSize); data.CrossSum = LatexConverter.ToLatex(data.CrossSum, fontSize); data.UncertPowerSum = LatexConverter.ToLatex(data.UncertPowerSum, fontSize); data.SlopeEquation = LatexConverter.ToLatex(data.SlopeEquation, fontSize); data.InterceptEquation = LatexConverter.ToLatex(data.InterceptEquation, fontSize); data.YUncertEquation = LatexConverter.ToLatex(data.YUncertEquation, fontSize); data.InterceptUncertEquation = LatexConverter.ToLatex(data.InterceptUncertEquation, fontSize); data.SlopeUncertEquation = LatexConverter.ToLatex(data.SlopeUncertEquation, fontSize); }