{"id":532,"date":"2021-12-06T22:31:39","date_gmt":"2021-12-06T21:31:39","guid":{"rendered":"http:\/\/yb-isn.fr\/2021\/spc\/?p=532"},"modified":"2021-12-07T21:13:33","modified_gmt":"2021-12-07T20:13:33","slug":"tp-n10-bis-lancer-franc-le-retour","status":"publish","type":"post","link":"https:\/\/yb-isn.fr\/2021\/spc\/?p=532","title":{"rendered":"TP n\u00b010 bis \u00c9nergie et latis pro"},"content":{"rendered":"<p><!--more--><\/p>\n\n\n<p>Approche \u00e9nerg\u00e9tique avec un pointage vid\u00e9o puis exploitation des donn\u00e9es en python.<\/p>\n\n\n\n<p class=\"has-very-light-gray-background-color has-background\">pointage vid\u00e9o<\/p>\n\n\n\n<p>Reprendre le pointage comme dans le Tp pr\u00e9c\u00e9dent <\/p>\n\n\n<p>Utiliser la feuille de calcul pour calculer :<\/p>\n<ul>\n<li>les vitesses<\/li>\n<li>les \u00e9nergies cin\u00e9tiques<\/li>\n<li>les \u00e9nergies potentielles<\/li>\n<li>les \u00e9nergies m\u00e9caniques<\/li>\n<\/ul>\n<p>Tracer sur un graphiques les trois courbes repr\u00e9sentants les \u00e9nergies en fonction du temps.<\/p>\n<p>Commentez les r\u00e9sultats obtenus.<\/p>\n\n\n<p class=\"has-very-light-gray-background-color has-background\">correction<\/p>\n\n\n\n<p><video controls=\"\" width=\"320\" height=\"240\">   <source src=\"http:\/\/yb-isn.fr\/video-spe-phy\/tpenergie.mp4\" type=\"video\/mp4\"><\/video><\/p>\n\n\n\n<p>Approche \u00e9nerg\u00e9tique avec un pointage vid\u00e9o puis exploitation des donn\u00e9es en python.<\/p>\n\n\n\n<p class=\"has-very-light-gray-background-color has-background\">pointage vid\u00e9o<\/p>\n\n\n\n<p>Reprendre le pointage comme dans le Tp pr\u00e9c\u00e9dent :<a href=\"http:\/\/yb-isn.fr\/spe-physique-2020\/2020\/12\/28\/le-lancer-franc\/\">Le lancer franc<\/a><\/p>\n\n\n\n<p>r\u00e9sultats du pointage<\/p>\n\n\n\n<div class=\"wp-block-file\"><a href=\"http:\/\/yb-isn.fr\/spe-physique-2020\/wp-content\/uploads\/2021\/01\/cloche.csv\">cloche.csv<\/a><a href=\"http:\/\/yb-isn.fr\/spe-physique-2020\/wp-content\/uploads\/2021\/01\/cloche.csv\" class=\"wp-block-file__button\" download>T\u00e9l\u00e9charger<\/a><\/div>\n\n\n<p>\u00e0 partir des donn\u00e9es (x,y et t) du pointage<\/p>\n<p>Utiliser un script python&nbsp; pour calculer :<\/p>\n<ul>\n<li>les vitesses<\/li>\n<li>les \u00e9nergies cin\u00e9tiques<\/li>\n<li>les \u00e9nergies potentielles<\/li>\n<li>les \u00e9nergies m\u00e9caniques<\/li>\n<\/ul>\n<p>Tracer sur un graphiques les trois courbes repr\u00e9sentants les \u00e9nergies en fonction du temps.<\/p>\n<p>Commentez les r\u00e9sultats obtenus.<\/p>\n\n\n<p class=\"has-very-light-gray-background-color has-background\">correction<\/p>\n\n\n\n<p>le fichier cloche.csv doit se trouver dans le m\u00eame dossier que le script python.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"droide\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import matplotlib.pyplot as plt\nimport pandas\nimport math\n\nm=0.624\ng=9.81\nv=[]\nEp=[]\nEc=[]\nEm=[]\n\ndf=pandas.read_csv('cloche.csv',encoding=\"cp1252\", sep=';',header=0)\nt=df['Temps'].values.tolist()\nx=df['x'].values.tolist()\ny=df['y'].values.tolist()\n\nfor i in range(len(t)-1):\n    vx=(x[i+1]-x[i])\/(t[i+1]-t[i])\n    vy=(y[i+1]-y[i])\/(t[i+1]-t[i])\n    \n    v.append(math.sqrt(vx**2+vy**2))\n    Ep.append(m*g*y[i])\n    Ec.append(1\/2*m*v[i]**2)\n    Em.append(Ec[i]+Ep[i])\n\nt.pop()\n\nplt.scatter(t,Ec,label=\"Ec\")\nplt.scatter(t,Ep,label=\"Ep\")\nplt.scatter(t,Em,label=\"Em\")\n\nplt.legend()\nplt.xlabel(\"temps en s\")\nplt.ylabel(\"\u00e9nergie en J\")\nplt.grid()\nplt.show()\n<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/yb-isn.fr\/spe-physique-2020\/wp-content\/uploads\/2021\/01\/Figure_1.png\" alt=\"\" class=\"wp-image-565\" width=\"320\" height=\"240\"\/><\/figure>\n\n\n\n<p><video controls=\"\" width=\"320\" height=\"240\">\n  <source src=\"http:\/\/yb-isn.fr\/video-spe-phy\/cloche-energie.mp4\" type=\"video\/mp4\"><\/video><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":533,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,3],"tags":[],"class_list":["post-532","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-tp"],"_links":{"self":[{"href":"https:\/\/yb-isn.fr\/2021\/spc\/index.php?rest_route=\/wp\/v2\/posts\/532"}],"collection":[{"href":"https:\/\/yb-isn.fr\/2021\/spc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yb-isn.fr\/2021\/spc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yb-isn.fr\/2021\/spc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yb-isn.fr\/2021\/spc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=532"}],"version-history":[{"count":5,"href":"https:\/\/yb-isn.fr\/2021\/spc\/index.php?rest_route=\/wp\/v2\/posts\/532\/revisions"}],"predecessor-version":[{"id":1144,"href":"https:\/\/yb-isn.fr\/2021\/spc\/index.php?rest_route=\/wp\/v2\/posts\/532\/revisions\/1144"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yb-isn.fr\/2021\/spc\/index.php?rest_route=\/wp\/v2\/media\/533"}],"wp:attachment":[{"href":"https:\/\/yb-isn.fr\/2021\/spc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yb-isn.fr\/2021\/spc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yb-isn.fr\/2021\/spc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}