??? don't remember

This commit is contained in:
lafrite 2014-12-19 07:59:26 +01:00
parent 43941c3148
commit 8d766b965f
5 changed files with 35 additions and 20 deletions

View File

@ -10,8 +10,6 @@ from path import path
from texenv import texenv from texenv import texenv
from pymath.random_expression import RdExpression from pymath.random_expression import RdExpression
RdExpression.FORM = "raw"
def main(options): def main(options):
#template = report_renderer.get_template(options.template) #template = report_renderer.get_template(options.template)

0
example/1_example.tex Normal file
View File

BIN
example/all_example.pdf Normal file

Binary file not shown.

View File

@ -1,36 +1,52 @@
\documentclass[a4paper,10pt]{/media/documents/Cours/Prof/Enseignements/Archive/2013-2014/tools/style/classDS} \documentclass[a4paper,10pt]{article}
\usepackage{/media/documents/Cours/Prof/Enseignements/Archive/2013-2014/2013_2014} \usepackage[utf8x]{inputenc}
\usepackage[francais]{babel}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
% Title Page % Title Page
\titre{Calcul littéral et statistiques} \title{Jouons avec DS\_géné et pyMath}
% \quatreC \quatreD \troisB \troisPro % \quatreC \quatreD \troisB \troisPro
\classe{\troisB} \date{}
\date{26 septemble 2013}
% DS DSCorr DM DMCorr Corr
\typedoc{DS}
\duree{1 heure}
\sujet{\Var{infos.Nom}}
\begin{document} \begin{document}
\maketitle \maketitle
\Calc \section{Exercice de simplification de fraction}
Le barème est donné à titre indicatif, il pourra être modifié. \Block{do RdExpression.set_form("exp")}
\begin{Exo}[4.5]
\Block{set A = RdExpression("{a}/2+2")()} \Block{set A = RdExpression("{a}/2+2")()}
\Block{set B = RdExpression("{a} / 2 + 4")()} \Block{set B = RdExpression("{a}/2+2")()}
Développer et réduire les expressions suivantes: Développer et réduire les expressions suivantes:
\begin{equation*} \begin{equation*}
A = \Var{ A } \\ A = \Var{ A } \qquad
B = \Var{ B } B = \Var{ B }
\end{equation*} \end{equation*}
Solutions: Solutions:
\Var{A.simplify() | calculus} \Var{A.simplify() | calculus}
\Var{B.simplify() | calculus(name = "B")} \Var{B.simplify() | calculus(name = "B")}
\end{Exo}
\section{Mettre sous forme canonique}
\Block{set P = RdExpression("{a}x^2 + {b}x + {c}")()}
Mettre $\Var{P}$ sous la forme canonique.
Solution:
On simplifie le polynôme:
\begin{eqnarray*}
\Var{P.simplify() | calculus(name = "P(x) = ")}
\end{eqnarray*}
Calcul des coordonnées du sommet de la courbe:
\begin{eqnarray*}
\alpha & = & \frac{-b}{2a} = \\
\beta & = & -\frac{b^2 - 4ac}{4a} =
\end{eqnarray*}
\end{document} \end{document}

View File

@ -10,7 +10,8 @@ texenv = jinja2.Environment(
block_end_string = '}', block_end_string = '}',
variable_start_string = '\Var{', variable_start_string = '\Var{',
variable_end_string = '}', variable_end_string = '}',
loader = jinja2.FileSystemLoader(os.path.abspath('.')) loader = jinja2.FileSystemLoader(os.path.abspath('.')),
extensions=['jinja2.ext.do']
) )
# Filters # Filters