Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pyromaths
pyromaths
Commits
ae865b2d
Commit
ae865b2d
authored
May 31, 2013
by
Olivier Cornu
Browse files
Déplace la logique d'ex/niveau/niveau.py dans ex/niveau/__init__.py.
parent
aa33081e
Changes
11
Hide whitespace changes
Inline
Side-by-side
src/pyromaths/Values.py
View file @
ae865b2d
...
...
@@ -72,12 +72,8 @@ HOME = home()
CONFIGDIR
=
configdir
()
def
_packages
():
from
ex.sixiemes
import
sixiemes
from
ex.cinquiemes
import
cinquiemes
from
ex.quatriemes
import
quatriemes
from
ex.troisiemes
import
troisiemes
from
ex.lycee
import
lycee
return
[
sixiemes
,
cinquiemes
,
quatriemes
,
troisiemes
,
lycee
]
import
ex.sixiemes
,
ex
.
cinquiemes
,
ex
.
quatriemes
,
ex
.
troisiemes
,
ex
.
lycee
return
[
ex
.
sixiemes
,
ex
.
cinquiemes
,
ex
.
quatriemes
,
ex
.
troisiemes
,
ex
.
lycee
]
# Packages d'exercices
PACKAGES
=
_packages
()
...
...
src/pyromaths/ex/cinquiemes/__init__.py
View file @
ae865b2d
...
...
@@ -20,3 +20,27 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
from
.
import
priorites
,
symetrie
,
fractions
,
reperage
,
relatifs
,
construction
,
proportionnalite
,
aires
,
statistiques
EXERCICES
=
(
priorites
.
main
,
symetrie
.
main
,
fractions
.
fractions_egales
,
fractions
.
sommes_fractions
,
fractions
.
produits_fractions
,
reperage
.
main
,
relatifs
.
main
,
construction
.
exo_triangle
,
construction
.
exo_quadrilatere
,
proportionnalite
.
exo_echelles
,
aires
.
exo_aire_diques
,
statistiques
.
statistiques
)
TITRES
=
[
u
'Priorités opératoires'
,
u
'Symétrie centrale'
,
u
'Fractions égales'
,
u
'Sommes de fractions'
,
u
'Produits de fractions'
,
u
'Repérage'
,
u
'Addition de relatifs'
,
u
'Construction de triangles'
,
u
'Construction de parallélogrammes'
,
u
'Échelles'
,
u
'Aire de disques'
,
u
'Statistiques'
,
]
FICHE
=
[
u
'Cinquième'
,
''
,
TITRES
]
src/pyromaths/ex/cinquiemes/cinquiemes.py
deleted
100644 → 0
View file @
aa33081e
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Pyromaths
# Un programme en Python qui permet de créer des fiches d'exercices types de
# mathématiques niveau collège ainsi que leur corrigé en LaTeX.
# Copyright (C) 2006 -- Jérôme Ortais (jerome.ortais@pyromaths.org)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
from
.
import
priorites
,
symetrie
,
fractions
,
reperage
,
relatifs
,
construction
,
proportionnalite
,
aires
,
statistiques
EXERCICES
=
(
priorites
.
main
,
symetrie
.
main
,
fractions
.
fractions_egales
,
fractions
.
sommes_fractions
,
fractions
.
produits_fractions
,
reperage
.
main
,
relatifs
.
main
,
construction
.
exo_triangle
,
construction
.
exo_quadrilatere
,
proportionnalite
.
exo_echelles
,
aires
.
exo_aire_diques
,
statistiques
.
statistiques
)
TITRES
=
[
u
'Priorités opératoires'
,
u
'Symétrie centrale'
,
u
'Fractions égales'
,
u
'Sommes de fractions'
,
u
'Produits de fractions'
,
u
'Repérage'
,
u
'Addition de relatifs'
,
u
'Construction de triangles'
,
u
'Construction de parallélogrammes'
,
u
'Échelles'
,
u
'Aire de disques'
,
u
'Statistiques'
,
]
FICHE
=
[
u
'Cinquième'
,
''
,
TITRES
]
src/pyromaths/ex/lycee/__init__.py
View file @
ae865b2d
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Pyromaths
# Un programme en Python qui permet de créer des fiches d'exercices types de
# mathématiques niveau collège ainsi que leur corrigé en LaTeX.
# Copyright (C) 2006 -- Jérôme Ortais (jerome.ortais@pyromaths.org)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
import
ExoPolynome
,
Vecteurs
,
CercleTrigo
,
SecondDegre
EXERCICES
=
(
ExoPolynome
.
exo_racines_degre2
,
ExoPolynome
.
exo_factorisation_degre2
,
ExoPolynome
.
exo_factorisation_degre3
,
ExoPolynome
.
exo_tableau_de_signe
,
ExoPolynome
.
exo_variation
,
ExoPolynome
.
exo_variation_lim
,
Vecteurs
.
vecteurs_add
,
CercleTrigo
.
cercle_trigonometrique
,
SecondDegre
.
FormeCanonique
,
)
TITRES
=
[
u
'Équations 2° degré'
,
u
'Factorisations 2° degré'
,
u
'Factorisations degré 3'
,
u
'Étude de signe'
,
u
"Sens de variations"
,
u
"Étude de fonctions"
,
u
"Vecteurs"
,
u
"Cercle trigonométrique"
,
u
"Forme canonique"
,
]
NIVEAUX
=
[
u
'Niveau 1èreS'
,
u
'Niveau 1èreS'
,
u
'Niveau 1èreS'
,
u
'Niveau 1èreS'
,
u
"Niveau 1èreS, Term STG"
,
u
"Niveau Term S"
,
u
"Niveau Seconde"
,
u
"Niveau Seconde"
,
]
FICHE
=
[
u
'Lycée'
,
''
,
TITRES
,
NIVEAUX
]
src/pyromaths/ex/lycee/lycee.py
deleted
100644 → 0
View file @
aa33081e
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Pyromaths
# Un programme en Python qui permet de créer des fiches d'exercices types de
# mathématiques niveau collège ainsi que leur corrigé en LaTeX.
# Copyright (C) 2006 -- Jérôme Ortais (jerome.ortais@pyromaths.org)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
import
ExoPolynome
,
Vecteurs
,
CercleTrigo
,
SecondDegre
EXERCICES
=
(
ExoPolynome
.
exo_racines_degre2
,
ExoPolynome
.
exo_factorisation_degre2
,
ExoPolynome
.
exo_factorisation_degre3
,
ExoPolynome
.
exo_tableau_de_signe
,
ExoPolynome
.
exo_variation
,
ExoPolynome
.
exo_variation_lim
,
Vecteurs
.
vecteurs_add
,
CercleTrigo
.
cercle_trigonometrique
,
SecondDegre
.
FormeCanonique
,
)
TITRES
=
[
u
'Équations 2° degré'
,
u
'Factorisations 2° degré'
,
u
'Factorisations degré 3'
,
u
'Étude de signe'
,
u
"Sens de variations"
,
u
"Étude de fonctions"
,
u
"Vecteurs"
,
u
"Cercle trigonométrique"
,
u
"Forme canonique"
,
]
NIVEAUX
=
[
u
'Niveau 1èreS'
,
u
'Niveau 1èreS'
,
u
'Niveau 1èreS'
,
u
'Niveau 1èreS'
,
u
"Niveau 1èreS, Term STG"
,
u
"Niveau Term S"
,
u
"Niveau Seconde"
,
u
"Niveau Seconde"
,
]
FICHE
=
[
u
'Lycée'
,
''
,
TITRES
,
NIVEAUX
]
src/pyromaths/ex/quatriemes/__init__.py
View file @
ae865b2d
...
...
@@ -20,3 +20,47 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
from
.
import
puissances
,
developpements
,
calcul_mental
,
fractions
,
geometrie
from
.
import
litteral
EXERCICES
=
(
calcul_mental
.
main
,
fractions
.
exo_sommes_fractions
,
fractions
.
exo_produits_fractions
,
fractions
.
exo_priorites_fractions
,
litteral
.
reduire
,
litteral
.
reduire_expressions
,
puissances
.
tex_proprietes
,
puissances
.
tex_proprietes_neg
,
puissances
.
ecr_sc
,
puissances
.
exo_puissances
,
developpements
.
exo_distributivite
,
developpements
.
exo_double_distributivite
,
geometrie
.
exo_pythagore
,
geometrie
.
exo_reciproque_pythagore
,
geometrie
.
exo_triangle_cercle
,
geometrie
.
exo_thales
,
geometrie
.
exo_trigo
,
)
TITRES
=
[
u
'Calcul mental'
,
u
'Sommes de fractions'
,
u
'Produits et quotients de fractions'
,
u
'Fractions et priorités'
,
u
'Bases du calcul littéral'
,
u
'Réduire des expressions littérales'
,
u
'Propriétés sur les puissances'
,
u
'Propriétés sur les puissances de 10'
,
u
'Écritures scientifiques'
,
u
'Puissances de 10'
,
u
'Distributivité'
,
u
'Double distributivité'
,
u
'Théorème de Pythagore'
,
u
'Réciproque du théorème de Pythagore'
,
u
'Cercle et théorème de Pythagore'
,
u
'Théorème de Thalès'
,
u
'Trigonométrie'
,
]
FICHE
=
[
u
'Quatrième'
,
''
,
TITRES
]
src/pyromaths/ex/quatriemes/quatriemes.py
deleted
100644 → 0
View file @
aa33081e
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Pyromaths
# Un programme en Python qui permet de créer des fiches d'exercices types de
# mathématiques niveau collège ainsi que leur corrigé en LaTeX.
# Copyright (C) 2006 -- Jérôme Ortais (jerome.ortais@pyromaths.org)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
from
.
import
puissances
,
developpements
,
calcul_mental
,
fractions
,
geometrie
from
.
import
litteral
EXERCICES
=
(
calcul_mental
.
main
,
fractions
.
exo_sommes_fractions
,
fractions
.
exo_produits_fractions
,
fractions
.
exo_priorites_fractions
,
litteral
.
reduire
,
litteral
.
reduire_expressions
,
puissances
.
tex_proprietes
,
puissances
.
tex_proprietes_neg
,
puissances
.
ecr_sc
,
puissances
.
exo_puissances
,
developpements
.
exo_distributivite
,
developpements
.
exo_double_distributivite
,
geometrie
.
exo_pythagore
,
geometrie
.
exo_reciproque_pythagore
,
geometrie
.
exo_triangle_cercle
,
geometrie
.
exo_thales
,
geometrie
.
exo_trigo
,
)
TITRES
=
[
u
'Calcul mental'
,
u
'Sommes de fractions'
,
u
'Produits et quotients de fractions'
,
u
'Fractions et priorités'
,
u
'Bases du calcul littéral'
,
u
'Réduire des expressions littérales'
,
u
'Propriétés sur les puissances'
,
u
'Propriétés sur les puissances de 10'
,
u
'Écritures scientifiques'
,
u
'Puissances de 10'
,
u
'Distributivité'
,
u
'Double distributivité'
,
u
'Théorème de Pythagore'
,
u
'Réciproque du théorème de Pythagore'
,
u
'Cercle et théorème de Pythagore'
,
u
'Théorème de Thalès'
,
u
'Trigonométrie'
,
]
FICHE
=
[
u
'Quatrième'
,
''
,
TITRES
]
src/pyromaths/ex/sixiemes/__init__.py
View file @
ae865b2d
...
...
@@ -20,3 +20,59 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
from
.
import
angles
,
decimaux
,
droites
,
fractions
,
operations
,
quotients
from
.
import
symetrie
,
arrondi
,
aires
,
espace
import
random
EXERCICES
=
(
operations
.
CalculMental
,
decimaux
.
EcrireNombreLettre
,
decimaux
.
PlaceVirgule
,
decimaux
.
EcritureFractionnaire
,
decimaux
.
Decomposition
,
decimaux
.
Conversions
(
1
),
decimaux
.
Conversions
(
2
),
decimaux
.
Conversions
(
3
),
operations
.
Operations
,
operations
.
ProduitPuissanceDix
,
decimaux
.
ClasserNombres
,
droites
.
Droites
,
droites
.
Perpendiculaires
,
droites
.
Proprietes
,
quotients
.
Divisible
,
fractions
.
FractionPartage
,
fractions
.
QuestionsAbscisses
,
aires
.
main
,
symetrie
.
SymetrieQuadrillage
,
angles
.
MesureAngles
,
espace
.
main
,
arrondi
.
ArrondirNombreDecimal
)
TITRES
=
[
u
'Calcul mental'
,
u
'Écrire un nombre décimal'
,
u
'Placer une virgule'
,
u
'Écriture fractionnaire ou décimale'
,
u
'Décomposition de décimaux'
,
u
'Conversions unités'
,
u
"Conversions unités d'aires"
,
u
"Conversions unités de volumes"
,
u
'Poser des opérations (sauf divisions)'
,
u
'Produits, quotients par 10, 100, 1000'
,
u
'Classer des nombres décimaux'
,
u
'Droites, demi-droites, segments'
,
u
'Droites perpendiculaires et parallèles'
,
u
'Propriétés sur les droites'
,
u
'Multiples de 2, 3, 5, 9, 10'
,
u
'Fractions partage'
,
u
'Fractions et abscisses'
,
u
'Aires et quadrillage'
,
u
'Symétrie et quadrillages'
,
u
'Mesurer des angles'
,
u
'Représentation dans l
\'
espace'
,
u
'Arrondir des nombres décimaux'
]
FICHE
=
[
u
'Sixième'
,
''
,
TITRES
]
src/pyromaths/ex/sixiemes/sixiemes.py
deleted
100644 → 0
View file @
aa33081e
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Pyromaths
# Un programme en Python qui permet de créer des fiches d'exercices types de
# mathématiques niveau collège ainsi que leur corrigé en LaTeX.
# Copyright (C) 2006 -- Jérôme Ortais (jerome.ortais@pyromaths.org)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
from
.
import
angles
,
decimaux
,
droites
,
fractions
,
operations
,
quotients
from
.
import
symetrie
,
arrondi
,
aires
,
espace
import
random
EXERCICES
=
(
operations
.
CalculMental
,
decimaux
.
EcrireNombreLettre
,
decimaux
.
PlaceVirgule
,
decimaux
.
EcritureFractionnaire
,
decimaux
.
Decomposition
,
decimaux
.
Conversions
(
1
),
decimaux
.
Conversions
(
2
),
decimaux
.
Conversions
(
3
),
operations
.
Operations
,
operations
.
ProduitPuissanceDix
,
decimaux
.
ClasserNombres
,
droites
.
Droites
,
droites
.
Perpendiculaires
,
droites
.
Proprietes
,
quotients
.
Divisible
,
fractions
.
FractionPartage
,
fractions
.
QuestionsAbscisses
,
aires
.
main
,
symetrie
.
SymetrieQuadrillage
,
angles
.
MesureAngles
,
espace
.
main
,
arrondi
.
ArrondirNombreDecimal
)
TITRES
=
[
u
'Calcul mental'
,
u
'Écrire un nombre décimal'
,
u
'Placer une virgule'
,
u
'Écriture fractionnaire ou décimale'
,
u
'Décomposition de décimaux'
,
u
'Conversions unités'
,
u
"Conversions unités d'aires"
,
u
"Conversions unités de volumes"
,
u
'Poser des opérations (sauf divisions)'
,
u
'Produits, quotients par 10, 100, 1000'
,
u
'Classer des nombres décimaux'
,
u
'Droites, demi-droites, segments'
,
u
'Droites perpendiculaires et parallèles'
,
u
'Propriétés sur les droites'
,
u
'Multiples de 2, 3, 5, 9, 10'
,
u
'Fractions partage'
,
u
'Fractions et abscisses'
,
u
'Aires et quadrillage'
,
u
'Symétrie et quadrillages'
,
u
'Mesurer des angles'
,
u
'Représentation dans l
\'
espace'
,
u
'Arrondir des nombres décimaux'
]
FICHE
=
[
u
'Sixième'
,
''
,
TITRES
]
src/pyromaths/ex/troisiemes/__init__.py
View file @
ae865b2d
...
...
@@ -20,3 +20,44 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
from
.
import
fractions
,
puissances
,
pgcd
,
developpements
,
equations
,
racines
from
.
import
systemes
,
proba
,
affine
,
geometrie
,
arithmetique
EXERCICES
=
(
fractions
.
tex_fractions
,
puissances
.
tex_puissances
,
pgcd
.
tex_pgcd
,
developpements
.
tex_developpements
,
developpements
.
tex_factorisations
,
developpements
.
tex_devfacteq
,
equations
.
tex_equations
,
racines
.
tex_racines
,
systemes
.
tex_systemes
,
affine
.
affine
,
proba
.
tex_proba
,
geometrie
.
tex_thales
,
geometrie
.
tex_reciproque_thales
,
geometrie
.
tex_trigo
,
arithmetique
.
Arithmetique
)
TITRES
=
[
u
'Fractions'
,
u
'Puissances'
,
u
'PGCD'
,
u
'Développements'
,
u
'Factorisations'
,
u
'Dévt, factorisat°, calcul et éq° produit'
,
u
'Équation'
,
u
'Racines carrées'
,
u
'Système d
\'
équations'
,
u
'Fonctions affines'
,
u
'Probabilités'
,
u
'Théorème de Thalès'
,
u
'Réciproque du théorème de Thalès'
,
u
'Trigonométrie'
,
u
'Arithmétique'
]
FICHE
=
[
u
'Troisième'
,
''
,
TITRES
]
src/pyromaths/ex/troisiemes/troisiemes.py
deleted
100644 → 0
View file @
aa33081e
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Pyromaths
# Un programme en Python qui permet de créer des fiches d'exercices types de
# mathématiques niveau collège ainsi que leur corrigé en LaTeX.
# Copyright (C) 2006 -- Jérôme Ortais (jerome.ortais@pyromaths.org)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
from
.
import
fractions
,
puissances
,
pgcd
,
developpements
,
equations
,
racines
from
.
import
systemes
,
proba
,
affine
,
geometrie
,
arithmetique
EXERCICES
=
(
fractions
.
tex_fractions
,
puissances
.
tex_puissances
,
pgcd
.
tex_pgcd
,
developpements
.
tex_developpements
,
developpements
.
tex_factorisations
,
developpements
.
tex_devfacteq
,
equations
.
tex_equations
,
racines
.
tex_racines
,
systemes
.
tex_systemes
,
affine
.
affine
,
proba
.
tex_proba
,
geometrie
.
tex_thales
,
geometrie
.
tex_reciproque_thales
,
geometrie
.
tex_trigo
,
arithmetique
.
Arithmetique
)
TITRES
=
[
u
'Fractions'
,
u
'Puissances'
,
u
'PGCD'
,
u
'Développements'
,
u
'Factorisations'
,
u
'Dévt, factorisat°, calcul et éq° produit'
,
u
'Équation'
,
u
'Racines carrées'
,
u
'Système d
\'
équations'
,
u
'Fonctions affines'
,
u
'Probabilités'
,
u
'Théorème de Thalès'
,
u
'Réciproque du théorème de Thalès'
,
u
'Trigonométrie'
,
u
'Arithmétique'
]
FICHE
=
[
u
'Troisième'
,
''
,
TITRES
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment