volume_moyen.py

Created by alex-juge84

Created on September 07, 2021

514 Bytes


from math import *
'''
Programme permettant de calculer
la valeur moyenne des  volumes V 
mesurés
'''
print(6*"\n")



#Version détaillée dans l'éxo
#sans la bibliothèque satistics

tab = [48.6, 50.1, 51.3, 50.5, 49.8, 49.7, 50.8]
moyenne = sum(tab) / len(tab)
ecart_type = sqrt(sum([(i - moyenne)**2 for i in tab]) / (len(tab)-1))
print("La moyenne des valeurs \n des volumes V mesurés \n vaut {0} \n et son écart-type \n vaut {1}".format(round(moyenne, 2), round(ecart_type, 3)))

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.