Commit 78a8df14 authored by Jérôme Ortais's avatar Jérôme Ortais
Browse files

Merge branch 'develop'

Conflicts:
	.gitignore
	Doc/build/html/_sources/intro.txt
	utils/make_packages.sh
	utils/transfert_sur_le_site.sh.asc
parents 21b569e4 c58a51de
......@@ -25,7 +25,7 @@ dist/
/src/tous.py
# Documentation sphinx
/Doc/build/doctrees/
/Doc/build/.doctrees/
/Doc/build/doctest/
/Doc/build/.buildinfo
/Doc/build/
# script confidentiel
/utils/transfert_sur_le_site.sh
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 824bdf405d68d7a668798609bcc3cb39
tags: fbb0d17656682115ca4d033fb2f83ba1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vue d&#39;ensemble : code du module &mdash; Documentation de Pyromaths 14.06</title>
<link rel="stylesheet" href="../_static/haiku.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/print.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '14.06',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<script type="text/javascript" src="../_static/translations.js"></script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript" src="../_static/theme_extras.js"></script>
<link rel="top" title="Documentation de Pyromaths 14.06" href="../index.html" />
</head>
<body>
<div class="header"><img class="rightlogo" src="../_static/bandeau.png" alt="Logo"/><h1 class="heading"><a href="../index.html">
<span>Documentation de Pyromaths 14.06</span></a></h1>
<h2 class="heading"><span>Vue d&#39;ensemble : code du module</span></h2>
</div>
<div class="topnav">
<p>
<a class="uplink" href="../index.html">Contenu</a>
</p>
</div>
<div class="content">
<h1>Modules pour lesquels le code est disponible</h1>
<ul><li><a href="pyromaths/classes/Fractions.html">pyromaths.classes.Fractions</a></li>
<li><a href="pyromaths/classes/PolynomesCollege.html">pyromaths.classes.PolynomesCollege</a></li>
<li><a href="pyromaths/ex/troisiemes/notion_de_fonction.html">pyromaths.ex.troisiemes.notion_de_fonction</a></li>
<li><a href="pyromaths/outils/Affichage.html">pyromaths.outils.Affichage</a></li>
<li><a href="pyromaths/outils/Arithmetique.html">pyromaths.outils.Arithmetique</a></li>
<li><a href="pyromaths/outils/Conversions.html">pyromaths.outils.Conversions</a></li>
<li><a href="pyromaths/outils/Priorites3.html">pyromaths.outils.Priorites3</a></li>
</ul>
</div>
<div class="bottomnav">
<p>
<a class="uplink" href="../index.html">Contenu</a>
</p>
</div>
<div class="footer">
&copy; Copyright 2013-2014, Jérôme Ortais.
Mis à jour le 11 juin 2014.
Créé avec <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
</div>
</body>
</html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pyromaths.outils.Conversions &mdash; Documentation de Pyromaths 14.06</title>
<link rel="stylesheet" href="../../../_static/haiku.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/print.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../../',
VERSION: '14.06',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../../../_static/jquery.js"></script>
<script type="text/javascript" src="../../../_static/underscore.js"></script>
<script type="text/javascript" src="../../../_static/doctools.js"></script>
<script type="text/javascript" src="../../../_static/translations.js"></script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript" src="../../../_static/theme_extras.js"></script>
<link rel="top" title="Documentation de Pyromaths 14.06" href="../../../index.html" />
<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">
<span>Documentation de Pyromaths 14.06</span></a></h1>
<h2 class="heading"><span>pyromaths.outils.Conversions</span></h2>
</div>
<div class="topnav">
<p>
<a class="uplink" href="../../../index.html">Contenu</a>
</p>
</div>
<div class="content">
<h1>Code source de pyromaths.outils.Conversions</h1><div class="highlight"><pre>
<span class="c">#!/usr/bin/python</span>
<span class="c"># -*- coding: utf-8 -*-</span>
<span class="c">#</span>
<span class="c"># Pyromaths</span>
<span class="c"># Un programme en Python qui permet de créer des fiches d&#39;exercices types de</span>
<span class="c"># mathématiques niveau collège ainsi que leur corrigé en LaTeX.</span>
<span class="c"># Copyright (C) 2006 -- Jérôme Ortais (jerome.ortais@pyromaths.org)</span>
<span class="c">#</span>
<span class="c"># This program is free software; you can redistribute it and/or modify</span>
<span class="c"># it under the terms of the GNU General Public License as published by</span>
<span class="c"># the Free Software Foundation; either version 2 of the License, or</span>
<span class="c"># (at your option) any later version.</span>
<span class="c">#</span>
<span class="c"># This program is distributed in the hope that it will be useful,</span>
<span class="c"># but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<span class="c"># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
<span class="c"># GNU General Public License for more details.</span>
<span class="c">#</span>
<span class="c"># You should have received a copy of the GNU General Public License</span>
<span class="c"># along with this program; if not, write to the Free Software</span>
<span class="c"># Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA</span>
<span class="kn">import</span> <span class="nn">math</span>
<div class="viewcode-block" id="radians"><a class="viewcode-back" href="../../../pyromaths.outils.Conversions.html#pyromaths.outils.Conversions.radians">[docs]</a><span class="k">def</span> <span class="nf">radians</span><span class="p">(</span><span class="n">alpha</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;**radians**\ (*alpha*)</span>
<span class="sd"> Convertit un angle donné en degrés en radians</span>
<span class="sd"> :param alpha: angle en degrés</span>
<span class="sd"> :type alpha: float</span>
<span class="sd"> &gt;&gt;&gt; from pyromaths.outils import Conversions</span>
<span class="sd"> &gt;&gt;&gt; Conversions.radians(30)</span>
<span class="sd"> 0.5235987755982988</span>
<span class="sd"> :rtype: float</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">return</span> <span class="n">alpha</span> <span class="o">*</span> <span class="n">math</span><span class="o">.</span><span class="n">pi</span> <span class="o">/</span> <span class="mi">180</span>
</div>
<div class="viewcode-block" id="degres"><a class="viewcode-back" href="../../../pyromaths.outils.Conversions.html#pyromaths.outils.Conversions.degres">[docs]</a><span class="k">def</span> <span class="nf">degres</span><span class="p">(</span><span class="n">alpha</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;**radians**\ (*alpha*)</span>
<span class="sd"> Convertit un angle donné en radians en degrés</span>
<span class="sd"> :param alpha: angle en radians</span>
<span class="sd"> :type alpha: float</span>
<span class="sd"> &gt;&gt;&gt; from pyromaths.outils import Conversions</span>
<span class="sd"> &gt;&gt;&gt; from math import pi</span>
<span class="sd"> &gt;&gt;&gt; Conversions.degres(pi/2)</span>
<span class="sd"> 90.0</span>
<span class="sd"> :rtype: float</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">return</span> <span class="n">alpha</span> <span class="o">*</span> <span class="mi">180</span> <span class="o">/</span> <span class="n">math</span><span class="o">.</span><span class="n">pi</span></div>
</pre></div>
</div>
<div class="bottomnav">
<p>
<a class="uplink" href="../../../index.html">Contenu</a>
</p>
</div>
<div class="footer">
&copy; Copyright 2013-2014, Jérôme Ortais.
Mis à jour le 11 juin 2014.
Créé avec <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
</div>
</body>
</html>
\ No newline at end of file
.. Pyromaths documentation master file, created by
sphinx-quickstart on Fri May 17 09:31:13 2013.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Bienvenue !
===========
Ce document a pour objectif d'essayer de documenter le code de Pyromaths afin de permettre à un maximum de développeurs de participer au développement de Pyromaths en sachant quels modules sont déjà développés.
Contenu :
.. toctree::
:maxdepth: 2
:numbered:
intro.rst
pyromaths.classes.rst
pyromaths.outils.rst
pyromaths.ex.troisiemes.rst
Index des modules et fonctions
==============================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
:mod:`Fractions` --- Nombres rationnels
=======================================
Le module :mod:`Fractions` définit la classe :class:`Fractions` qui permet de
faire des calculs détaillés avec des nombres en écriture fractionnaire.
Un objet :class:`Fractions` est construit à partir de son numérateur et son
dénominateur.
.. automodule:: pyromaths.classes.Fractions
:members:
:special-members:
.. :private-members:
:undoc-members:
:show-inheritance:
:mod:`PolynomesCollege` --- Fonctions polynômes
===============================================
Le module :mod:`PolynomesCollege` introduit la classe :class:`Polynome` qui
permet de faire des calculs détaillés sur les polynômes.
Un objet Polynome peut être construit à partir d'une liste et d'une chaîne contenant une variable ou à partir d'une chaîne représentant le polynôme avec la variable choisie.
.. autoclass:: pyromaths.classes.PolynomesCollege.Polynome
:members:
:special-members:
.. :private-members:
:undoc-members:
:show-inheritance:
.. automodule:: pyromaths.classes.PolynomesCollege
:members:
:special-members:
:undoc-members:
.. :private-members:
:show-inheritance:
\ No newline at end of file
Les classes de Pyromaths
========================
.. toctree::
:maxdepth: 2
pyromaths.classes.Fractions
pyromaths.classes.PolynomesCollege
:mod:`Affichage` --- Fonctions d'affichage
==========================================
Le module :mod:`Affichage`
.. automodule:: pyromaths.outils.Affichage
:members:
:special-members:
.. :private-members:
:undoc-members:
:show-inheritance:
:mod:`Arithmetique` --- Fonctions arithmétiques
===============================================
Le module :mod:`Arithmetique`
.. automodule:: pyromaths.outils.Arithmetique
:members:
:special-members:
:undoc-members:
.. :private-members:
:show-inheritance:
:mod:`Conversions` --- Fonctions de conversions
===============================================
Le module :mod:`Conversions`
.. automodule:: pyromaths.outils.Conversions
:members:
:special-members:
:undoc-members:
.. :private-members:
:show-inheritance:
:mod:`Priorites3` --- Évaluation d'une expression calculatoire
==============================================================
Le module :mod:`Priorites3` a pour objectif d'analyser une expression
calculatoire afin d'effectuer l'opération de façon détaillée en respectant les
priorités de calcul. Ce module n'utilise pas d'expressions régulières pour
analyser l'expression, afin de gagner du temps.
Ce module devra à l'avenir prendre également en charge les classes :class:`Racine` et :class:`Fractions`.
.. automodule:: pyromaths.outils.Priorites3
:members:
:special-members:
.. :private-members:
:undoc-members:
:show-inheritance:
Les outils de Pyromaths
=======================
.. toctree::
:maxdepth: 2
pyromaths.outils.Affichage.rst
pyromaths.outils.Arithmetique.rst
pyromaths.outils.Conversions.rst
pyromaths.outils.Priorites3.rst
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