Commit 020fee9e authored by Jérôme Ortais's avatar Jérôme Ortais
Browse files

Ajout d'un exercice sur la notion de fonction, niveau troisième. À cette...

Ajout d'un exercice sur la notion de fonction, niveau troisième. À cette occasion, correction d'un bug dans la classe Polynome et amélioration du code.
Mise à jour de la documentation, des vignettes et des scripts.
parent d7f82770
......@@ -28,7 +28,9 @@
<link rel="top" title="documentation Pyromaths 14.05" href="../index.html" />
</head>
<body>
<div class="header"><img class="rightlogo" src="../_static/bandeau.png" alt="Logo"/><h1 class="heading"><a href="../index.html">
<div class="header"><a href="http://www.pyromaths.org/" >
<img class="rightlogo" src="../_static/bandeau.png" alt="Logo"/>
</a><h1 class="heading"><a href="../index.html">
<span>documentation Pyromaths 14.05</span></a></h1>
<h2 class="heading"><span>Vue d&#39;ensemble : code du module</span></h2>
</div>
......
......@@ -29,7 +29,9 @@
<link rel="up" title="Code du module" href="../../index.html" />
</head>
<body>
<div class="header"><img class="rightlogo" src="../../../_static/bandeau.png" alt="Logo"/><h1 class="heading"><a href="../../../index.html">
<div class="header"><a href="http://www.pyromaths.org/" >
<img class="rightlogo" src="../../../_static/bandeau.png" alt="Logo"/>
</a><h1 class="heading"><a href="../../../index.html">
<span>documentation Pyromaths 14.05</span></a></h1>
<h2 class="heading"><span>pyromaths.classes.Fractions</span></h2>
</div>
......@@ -354,7 +356,10 @@
<span class="k">return</span> <span class="n">Fraction</span><span class="p">(</span><span class="n">num</span><span class="p">,</span> <span class="n">leppcm</span><span class="p">)</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">n</span><span class="p">:</span> <span class="n">lfrac</span> <span class="o">=</span> <span class="p">[</span><span class="nb">repr</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">choix_denominateur</span><span class="p">(</span><span class="n">leppcm</span><span class="p">))]</span>
<span class="k">else</span><span class="p">:</span> <span class="n">lfrac</span> <span class="o">=</span> <span class="p">[]</span>
<span class="k">for</span> <span class="n">other</span> <span class="ow">in</span> <span class="n">lother</span><span class="p">:</span> <span class="n">lfrac</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="nb">repr</span><span class="p">(</span><span class="n">other</span><span class="o">.</span><span class="n">choix_denominateur</span><span class="p">(</span><span class="n">leppcm</span><span class="p">)))</span>
<span class="k">for</span> <span class="n">other</span> <span class="ow">in</span> <span class="n">lother</span><span class="p">:</span>
<span class="k">if</span> <span class="n">lfrac</span><span class="p">:</span> <span class="n">lfrac</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="nb">repr</span><span class="p">(</span><span class="n">other</span><span class="o">.</span><span class="n">choix_denominateur</span><span class="p">(</span><span class="n">leppcm</span><span class="p">)))</span>
<span class="k">else</span><span class="p">:</span> <span class="n">lfrac</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="nb">repr</span><span class="p">(</span><span class="o">-</span><span class="n">other</span><span class="o">.</span><span class="n">choix_denominateur</span><span class="p">(</span><span class="n">leppcm</span><span class="p">)))</span>
<span class="c"># On effectue Fraction(0,3)-Fraction(2,3), il faut donc prendre l&#39;opposé de Fraction(2,3), puisque Fraction(0,3) a été supprimée</span>
<span class="k">if</span> <span class="n">lfrac</span><span class="p">:</span> <span class="k">return</span> <span class="s">&quot;-&quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">lfrac</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span> <span class="k">return</span> <span class="s">&quot;0&quot;</span>
</div>
......
......@@ -29,7 +29,9 @@
<link rel="up" title="Code du module" href="../../index.html" />
</head>
<body>
<div class="header"><img class="rightlogo" src="../../../_static/bandeau.png" alt="Logo"/><h1 class="heading"><a href="../../../index.html">
<div class="header"><a href="http://www.pyromaths.org/" >
<img class="rightlogo" src="../../../_static/bandeau.png" alt="Logo"/>
</a><h1 class="heading"><a href="../../../index.html">
<span>documentation Pyromaths 14.05</span></a></h1>
<h2 class="heading"><span>pyromaths.outils.Affichage</span></h2>
</div>
......
......@@ -29,7 +29,9 @@
<link rel="up" title="Code du module" href="../../index.html" />
</head>
<body>
<div class="header"><img class="rightlogo" src="../../../_static/bandeau.png" alt="Logo"/><h1 class="heading"><a href="../../../index.html">
<div class="header"><a href="http://www.pyromaths.org/" >
<img class="rightlogo" src="../../../_static/bandeau.png" alt="Logo"/>
</a><h1 class="heading"><a href="../../../index.html">
<span>documentation Pyromaths 14.05</span></a></h1>
<h2 class="heading"><span>pyromaths.outils.Arithmetique</span></h2>
</div>
......
......@@ -29,7 +29,9 @@
<link rel="up" title="Code du module" href="../../index.html" />
</head>
<body>
<div class="header"><img class="rightlogo" src="../../../_static/bandeau.png" alt="Logo"/><h1 class="heading"><a href="../../../index.html">
<div class="header"><a href="http://www.pyromaths.org/" >
<img class="rightlogo" src="../../../_static/bandeau.png" alt="Logo"/>
</a><h1 class="heading"><a href="../../../index.html">
<span>documentation Pyromaths 14.05</span></a></h1>
<h2 class="heading"><span>pyromaths.outils.Conversions</span></h2>
</div>
......
......@@ -29,7 +29,9 @@
<link rel="up" title="Code du module" href="../../index.html" />
</head>
<body>
<div class="header"><img class="rightlogo" src="../../../_static/bandeau.png" alt="Logo"/><h1 class="heading"><a href="../../../index.html">
<div class="header"><a href="http://www.pyromaths.org/" >
<img class="rightlogo" src="../../../_static/bandeau.png" alt="Logo"/>
</a><h1 class="heading"><a href="../../../index.html">
<span>documentation Pyromaths 14.05</span></a></h1>
<h2 class="heading"><span>pyromaths.outils.Priorites3</span></h2>
</div>
......
......@@ -29,7 +29,9 @@
<link rel="top" title="documentation Pyromaths 14.05" href="index.html" />
</head>
<body>
<div class="header"><img class="rightlogo" src="_static/bandeau.png" alt="Logo"/><h1 class="heading"><a href="index.html">
<div class="header"><a href="http://www.pyromaths.org/" >
<img class="rightlogo" src="_static/bandeau.png" alt="Logo"/>
</a><h1 class="heading"><a href="index.html">
<span>documentation Pyromaths 14.05</span></a></h1>
<h2 class="heading"><span>Index</span></h2>
</div>
......@@ -273,6 +275,10 @@
<dt><a href="pyromaths.outils.Arithmetique.html#pyromaths.outils.Arithmetique.combinaison">combinaison() (dans le module pyromaths.outils.Arithmetique)</a>
</dt>
<dt><a href="pyromaths.ex.troisiemes.notion_de_fonction.html#pyromaths.ex.troisiemes.notion_de_fonction.creer_fonction">creer_fonction() (dans le module pyromaths.ex.troisiemes.notion_de_fonction)</a>
</dt>
</dl></td>
</tr></table>
......@@ -366,6 +372,12 @@
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
<dt><a href="pyromaths.ex.troisiemes.notion_de_fonction.html#pyromaths.ex.troisiemes.notion_de_fonction.notion_fonction">notion_fonction() (dans le module pyromaths.ex.troisiemes.notion_de_fonction)</a>
</dt>
</dl></td>
<td style="width: 33%" valign="top"><dl>
<dt><a href="pyromaths.classes.PolynomesCollege.html#pyromaths.classes.PolynomesCollege.Polynome.nreduction">nreduction() (méthode pyromaths.classes.PolynomesCollege.Polynome)</a>, <a href="pyromaths.classes.PolynomesCollege.html#pyromaths.classes.PolynomesCollege.Polynome.nreduction">[1]</a>
</dt>
......
......@@ -29,7 +29,9 @@
<link rel="next" title="1. Introduction" href="intro.html" />
</head>
<body>
<div class="header"><img class="rightlogo" src="_static/bandeau.png" alt="Logo"/><h1 class="heading"><a href="#">
<div class="header"><a href="http://www.pyromaths.org/" >
<img class="rightlogo" src="_static/bandeau.png" alt="Logo"/>
</a><h1 class="heading"><a href="#">
<span>documentation Pyromaths 14.05</span></a></h1>
<h2 class="heading"><span>Bienvenue dans la documentation de Pyromaths !</span></h2>
</div>
......
......@@ -30,7 +30,9 @@
<link rel="prev" title="Bienvenue dans la documentation de Pyromaths !" href="index.html" />
</head>
<body>
<div class="header"><img class="rightlogo" src="_static/bandeau.png" alt="Logo"/><h1 class="heading"><a href="index.html">
<div class="header"><a href="http://www.pyromaths.org/" >
<img class="rightlogo" src="_static/bandeau.png" alt="Logo"/>
</a><h1 class="heading"><a href="index.html">
<span>documentation Pyromaths 14.05</span></a></h1>
<h2 class="heading"><span>1. Introduction</span></h2>
</div>
......
......@@ -31,7 +31,9 @@
</head>
<body>
<div class="header"><img class="rightlogo" src="_static/bandeau.png" alt="Logo"/><h1 class="heading"><a href="index.html">
<div class="header"><a href="http://www.pyromaths.org/" >
<img class="rightlogo" src="_static/bandeau.png" alt="Logo"/>
</a><h1 class="heading"><a href="index.html">
<span>documentation Pyromaths 14.05</span></a></h1>
<h2 class="heading"><span>Index des modules Python</span></h2>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment