2019年10月21日

计算太阳赤纬 和 太阳日落时角

摘要: import math as m def Declination(n): """ 计算太阳赤纬 :param n: 月份天数 :return: 赤纬角度 """ a = 23.45*m.sin(m.radians(360*(284+n)/365)) return a a = Declination(31) print("{:.3f}".format(a)) def Sunrise_hour_ang 阅读全文

posted @ 2019-10-21 19:16 H_G_R 阅读(2115) 评论(0) 推荐(0)

建筑环境测试技术--计算残差和标准差

摘要: import math print("计算算术平均值") sum = 0 num = 0 x = 0 i = 1 residual = 0 residual_list = [] n = int(input("请输入测量数据数量:")) x_list = [] while i <= n: x = float(input("请输入被测量值%d:"%i)) x_list.append(x) sum += 阅读全文

posted @ 2019-10-21 19:15 H_G_R 阅读(724) 评论(0) 推荐(0)

导航