private void button8_Click(object sender, EventArgs e)//间接测量量转动惯量I的相关计算 { Cal[7] = Convert.ToDouble(Calculate.ExcelToString(path, 1, 26, 2)); double Icalculate = Calculate.Icalculate(Cal);//计算I的平均值 Cal[14] = Icalculate; double Ixiangduibuquedingdu = Calculate.Ixiangduibuqueding(Cal); //计算I的相对不确定度 double Ibuquedingdu = Calculate.A(Icalculate * Ixiangduibuquedingdu, 5); //计算I的总不确定度,以及保留小数(四舍六入五凑偶) textBox6.Text = Convert.ToString(Calculate.A(Icalculate, 5)); textBox7.Text = Ibuquedingdu.ToString("0.00000"); textBox8.Text = Convert.ToString(Calculate.A(Ixiangduibuquedingdu, 2)) + "%"; button15.Enabled = true; }