{"id":316,"date":"2019-08-31T13:15:47","date_gmt":"2019-08-31T11:15:47","guid":{"rendered":"http:\/\/caneri.gmollet.free.fr\/?page_id=316"},"modified":"2023-09-13T15:27:09","modified_gmt":"2023-09-13T13:27:09","slug":"activite-i","status":"publish","type":"page","link":"https:\/\/courscaneri.ovh\/?page_id=316","title":{"rendered":"Activit\u00e9 I &#8211; Polyn\u00f4mes du second degr\u00e9"},"content":{"rendered":"<ol>\n<li>Ex\u00e9ctuer le logiciel <em>Thonny<\/em>.<\/li>\n<li>On consid\u00e8re le polyn\u00f4me <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-fda1e51b12ba3624074fcbebad72b1fc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#80;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/><\/code> d\u00e9fini sur <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-245bc9fa4fce4d5d0cd20d26f5bce0aa_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: 0px;\"\/><\/code> par <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-d6eeaa3b569a83ca163d6b888efba06d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#111;&#114;&#97;&#108;&#108;&#32;&#120;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;&#44;&#32;&#80;&#40;&#120;&#41;&#61;&#51;&#120;&#94;&#50;&#32;&#43;&#32;&#54;&#120;&#32;&#45;&#57;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"222\" style=\"vertical-align: -5px;\"\/><\/code>.<br \/>\nTaper l&#8217;instruction suivante dans l&#8217;\u00e9diteur de code:<\/p>\n<pre><code class=\"language-python\">def Q(x):\r\n    return 3*x*x+6*x-9<\/code><\/pre>\n<p>Ex\u00e9cuter le script.<br \/>\nTaper dans le shell l&#8217;instruction suivante:<\/p>\n<pre><code class=\"language-bash\">&gt;&gt;&gt; Q(2)<\/code><\/pre>\n<p>Quel est le r\u00e9sultat?<br \/>\nNous venons donc de cr\u00e9er une fonction Python nomm\u00e9e <code class=\"katex-inline\">Q<\/code> qui poss\u00e8de un param\u00e8tre <code class=\"katex-inline\">x<\/code>.<\/li>\n<li>On consid\u00e8re le polyn\u00f4me <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-fda1e51b12ba3624074fcbebad72b1fc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#80;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/><\/code> d\u00e9fini sur <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-245bc9fa4fce4d5d0cd20d26f5bce0aa_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: 0px;\"\/><\/code> par <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-c6ca3c6c2e002b67d59b0d817c3cd0ac_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#111;&#114;&#97;&#108;&#108;&#32;&#120;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;&#44;&#32;&#80;&#40;&#120;&#41;&#61;&#97;&#120;&#94;&#50;&#32;&#43;&#32;&#98;&#120;&#32;&#43;&#99;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"220\" style=\"vertical-align: -5px;\"\/><\/code> o\u00f9 <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-0de5c17eaf9ca7dd3b66bdb3f23b397d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;&#94;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"50\" style=\"vertical-align: -1px;\"\/><\/code>, <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-21b49cb672560bc4970e3205f8eaef68_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#98;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"42\" style=\"vertical-align: -1px;\"\/><\/code> et <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-675e95cf0f14068ac911e7ca176ea120_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#99;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"42\" style=\"vertical-align: -1px;\"\/><\/code>.\n<ol>\n<li>Cr\u00e9er une fonction <code><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-4e49d55a48f8ff6e72746e589bca29b2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#80;&#40;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"27\" style=\"vertical-align: -5px;\"\/><\/code> qui prend en param\u00e8tre les coefficients a, b, c et la variable x. Elle retournera la valeur de <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-d0da22b6347dac80d8c7d5e155a8bf81_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#80;&#40;&#120;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"37\" style=\"vertical-align: -5px;\"\/><\/code>.<\/li>\n<li>Taper le code suivant:\n<pre><code class=\"language-python\">def forme_canonique(a,b,c):\r\n    alpha=-b\/(2*a)\r\n    beta=P(a,b,c,alpha)\r\n    print(str(a)+\"(x - \"+ str(alpha) + \")^2 \" + str(beta))<\/code><\/pre>\n<\/li>\n<li>Tester cette fonction. Que fait-elle?<\/li>\n<li>Mettre sous forme canonique les polyn\u00f4mes suivants:\n<ul>\n<li><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-4df8fe179e36a2fe2c82285465a2733c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#52;&#120;&#94;&#50;&#43;&#49;&#120;&#45;&#53;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"97\" style=\"vertical-align: -2px;\"\/><\/code><\/li>\n<li><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-dfaed78131bf815f55c7e7b2136d12a2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#50;&#43;&#50;&#120;&#43;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"88\" style=\"vertical-align: -2px;\"\/><\/code><\/li>\n<li><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-72cb6d6842ab44813858d4e06424dbeb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#51;&#120;&#94;&#50;&#43;&#51;&#120;&#43;&#51;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"98\" style=\"vertical-align: -2px;\"\/><\/code><\/li>\n<li><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-be1e0b8626adb8cbbaaa4868b4b419da_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#50;&#45;&#120;&#45;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"79\" style=\"vertical-align: 0px;\"\/><\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/li>\n<li>On consid\u00e8re toujours le polyn\u00f4me <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-fda1e51b12ba3624074fcbebad72b1fc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#80;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/><\/code> d\u00e9fini sur <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-245bc9fa4fce4d5d0cd20d26f5bce0aa_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: 0px;\"\/><\/code> par <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-2974e227c0d4e264e38067135598d7c9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#111;&#114;&#97;&#108;&#108;&#32;&#120;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;&#44;&#32;&#80;&#40;&#120;&#41;&#61;&#97;&#120;&#94;&#50;&#32;&#43;&#32;&#98;&#120;&#32;&#43;&#32;&#99;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"220\" style=\"vertical-align: -5px;\"\/><\/code> o\u00f9 <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-0de5c17eaf9ca7dd3b66bdb3f23b397d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;&#94;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"50\" style=\"vertical-align: -1px;\"\/><\/code>, <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-21b49cb672560bc4970e3205f8eaef68_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#98;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"42\" style=\"vertical-align: -1px;\"\/><\/code> et <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-675e95cf0f14068ac911e7ca176ea120_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#99;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"42\" style=\"vertical-align: -1px;\"\/><\/code>.\n<ol>\n<li>Cr\u00e9er une fonction <code>discriminant()<\/code> qui prend en param\u00e8tre les coefficients a, b et c et qui retourne le discriminant du polyn\u00f4me <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-fda1e51b12ba3624074fcbebad72b1fc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#80;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/><\/code>.<\/li>\n<li>Cr\u00e9er une fonction <code>racines()<\/code> qui prend en param\u00e8tres les coefficients a, b et c et qui retourne les \u00e9ventuelles racines du polyn\u00f4me <code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-fda1e51b12ba3624074fcbebad72b1fc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#80;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/><\/code>.<\/li>\n<li>R\u00e9soudre les \u00e9quations suivantes:\n<ul>\n<li><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-938eae43d161bda59dfdf42ab9d5f9e1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#52;&#120;&#94;&#50;&#43;&#49;&#120;&#45;&#53;&#61;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"131\" style=\"vertical-align: -2px;\"\/><\/code><\/li>\n<li><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-ce3cca0cc16fde6f4c2116eaa0af7d48_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#50;&#43;&#50;&#120;&#43;&#49;&#61;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"122\" style=\"vertical-align: -2px;\"\/><\/code><\/li>\n<li><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-b14051f5a8f9d5f2c00e0a6e4080721a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#51;&#120;&#94;&#50;&#43;&#51;&#120;&#43;&#51;&#61;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"131\" style=\"vertical-align: -2px;\"\/><\/code><\/li>\n<li><code class=\"katex-inline\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/courscaneri.ovh\/wp-content\/ql-cache\/quicklatex.com-5462b15441567bed266a9eb5322d71ed_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#50;&#45;&#120;&#45;&#49;&#61;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"113\" style=\"vertical-align: 0px;\"\/><\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Ex\u00e9ctuer le logiciel Thonny. On consid\u00e8re le polyn\u00f4me d\u00e9fini sur par . Taper l&#8217;instruction suivante dans l&#8217;\u00e9diteur de code: def Q(x): return 3*x*x+6*x-9 Ex\u00e9cuter le script. Taper dans le shell l&#8217;instruction suivante: &gt;&gt;&gt; Q(2) Quel est le r\u00e9sultat? Nous venons donc de cr\u00e9er une fonction Python nomm\u00e9e Q qui poss\u00e8de un param\u00e8tre x. On consid\u00e8re [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":112,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-316","page","type-page","status-publish","czr-hentry"],"_links":{"self":[{"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=\/wp\/v2\/pages\/316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=316"}],"version-history":[{"count":2,"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=\/wp\/v2\/pages\/316\/revisions"}],"predecessor-version":[{"id":3915,"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=\/wp\/v2\/pages\/316\/revisions\/3915"}],"up":[{"embeddable":true,"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=\/wp\/v2\/pages\/112"}],"wp:attachment":[{"href":"https:\/\/courscaneri.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}