Feat: acheive to run all templates
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6cb316ff01
commit
369cc1ca42
@ -23,7 +23,7 @@
|
|||||||
\section{Simplifications de fractions}
|
\section{Simplifications de fractions}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item Trouver le numérateur quand le dénominateur augmente
|
\item Trouver le numérateur quand le dénominateur augmente
|
||||||
\Block{set a,b,ans,c = random_str("{a},{b},{a*c},{b*c}", conditions = ["{a} != {b}"], val_min = 2, val_max = 10).split(',')}%
|
%- set a,b,ans,c = random_list(["{a}", "{b}", "{a*c}", "{b*c}"], conditions = ["a != b"], min_max=(2, 10))
|
||||||
\begin{align*}
|
\begin{align*}
|
||||||
\dfrac{\Var{a}}{\Var{b}} = \dfrac{\ldots}{\Var{c}}
|
\dfrac{\Var{a}}{\Var{b}} = \dfrac{\ldots}{\Var{c}}
|
||||||
\end{align*}
|
\end{align*}
|
||||||
@ -33,7 +33,7 @@
|
|||||||
\end{align*}
|
\end{align*}
|
||||||
|
|
||||||
\item Trouver le numérateur quand le dénominateur diminue
|
\item Trouver le numérateur quand le dénominateur diminue
|
||||||
\Block{set a,b,ans,c = random_str("{a*c},{b*c},{a},{b}", conditions = ["{a} != {b}"], val_min = 2, val_max = 10).split(',')}%
|
\Block{set a,b,ans,c = random_list(["{a*c}", "{b*c}", "{a}", "{b}"], conditions = ["a != b"], min_max=(2, 10))}
|
||||||
\begin{align*}
|
\begin{align*}
|
||||||
\dfrac{\Var{a}}{\Var{b}} = \dfrac{\cdots}{\Var{c}}
|
\dfrac{\Var{a}}{\Var{b}} = \dfrac{\cdots}{\Var{c}}
|
||||||
\end{align*}
|
\end{align*}
|
||||||
@ -41,10 +41,10 @@
|
|||||||
\begin{align*}
|
\begin{align*}
|
||||||
\dfrac{\Var{a}}{\Var{b}} = \dfrac{\Var{ans}}{\Var{c}}
|
\dfrac{\Var{a}}{\Var{b}} = \dfrac{\Var{ans}}{\Var{c}}
|
||||||
\end{align*}
|
\end{align*}
|
||||||
Explications
|
Explications \Var{type(a)} -- \Var{type(b)}
|
||||||
\Block{set f = Expression(a + "/" +b)}
|
set f = Expression.from_str(str(int(a)) + " / " + str(int(b)))
|
||||||
\begin{align*}
|
\begin{align*}
|
||||||
\Var{f.simplify().explain()|join('=')}
|
\texttt{f.simplify().explain()|join('=')}
|
||||||
\end{align*}
|
\end{align*}
|
||||||
|
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item Fraction avec le même dénominateur
|
\item Fraction avec le même dénominateur
|
||||||
\Block{set e = Expression.random("{a} / {b} + {c} / {b}", ["{b} > 1"], val_min = 1)}
|
\Block{set e = Expression.random("{a} / {b} + {c} / {b}", ["b > 1"], min_max=(1, 10))}
|
||||||
\begin{align*}
|
\begin{align*}
|
||||||
A = \Var{e}
|
A = \Var{e}
|
||||||
\end{align*}
|
\end{align*}
|
||||||
@ -64,17 +64,7 @@
|
|||||||
\end{align*}
|
\end{align*}
|
||||||
|
|
||||||
\item Fraction avec un denominateur multiple de l'autre
|
\item Fraction avec un denominateur multiple de l'autre
|
||||||
\Block{set e = Expression.random("{a} / {b} + {c} / {b*d}", ["{b} > 1","{d} > 1"], val_min = 1)}
|
\Block{set e = Expression.random("{a} / {b} + {c} / {b*d}", ["b > 1","d > 1"], min_max=(1, 10))}
|
||||||
\begin{align*}
|
|
||||||
A = \Var{e}
|
|
||||||
\end{align*}
|
|
||||||
Solution
|
|
||||||
\begin{align*}
|
|
||||||
\Var{e.simplify().explain() | join('=')}
|
|
||||||
\end{align*}
|
|
||||||
|
|
||||||
\item Fraction avec des dénominateurs premiers entre eux
|
|
||||||
\Block{set e = Expression.random("{a} / {b} + {c} / {d}", ["{b} > 1","{d} > 1", "gcd({b},{d}) == 1"], val_min = 1)}
|
|
||||||
\begin{align*}
|
\begin{align*}
|
||||||
A = \Var{e}
|
A = \Var{e}
|
||||||
\end{align*}
|
\end{align*}
|
||||||
@ -84,7 +74,7 @@
|
|||||||
\end{align*}
|
\end{align*}
|
||||||
|
|
||||||
\item Une fraction et un entier
|
\item Une fraction et un entier
|
||||||
\Block{set e = Expression.random("{a} / {b} + {c}", ["{b} > 1"], val_min = 1)}
|
\Block{set e = Expression.random("{a} / {b} + {c}", ["b > 1"], min_max=(1, 10))}
|
||||||
\begin{align*}
|
\begin{align*}
|
||||||
A = \Var{e}
|
A = \Var{e}
|
||||||
\end{align*}
|
\end{align*}
|
||||||
@ -94,7 +84,7 @@
|
|||||||
\end{align*}
|
\end{align*}
|
||||||
|
|
||||||
\item Une fraction et un entier
|
\item Une fraction et un entier
|
||||||
\Block{set e = Expression.random("{c} + {a} / {b}", ["{b} > 1"], val_min = 1)}
|
\Block{set e = Expression.random("{c} + {a} / {b}", ["b > 1"], min_max=(1, 10))}
|
||||||
\begin{align*}
|
\begin{align*}
|
||||||
A = \Var{e}
|
A = \Var{e}
|
||||||
\end{align*}
|
\end{align*}
|
||||||
@ -108,7 +98,7 @@
|
|||||||
\section{Multiplications de fractions}
|
\section{Multiplications de fractions}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item Une fraction et un entier
|
\item Une fraction et un entier
|
||||||
\Block{set e = Expression.random("{c} * {a} / {b}", ["{b} > 1"], val_min = 1)}
|
\Block{set e = Expression.random("{c} * {a} / {b}", min_max=(2, 10))}
|
||||||
\begin{align*}
|
\begin{align*}
|
||||||
A = \Var{e}
|
A = \Var{e}
|
||||||
\end{align*}
|
\end{align*}
|
||||||
@ -118,7 +108,7 @@
|
|||||||
\end{align*}
|
\end{align*}
|
||||||
|
|
||||||
\item Fraction avec des dénominateurs quelconques
|
\item Fraction avec des dénominateurs quelconques
|
||||||
\Block{set e = Expression.random("{a} / {b} * {c} / {d}", ["{b} > 1","{d} > 1"], val_min = 1)}
|
\Block{set e = Expression.random("{a} / {b} * {c} / {d}", ["b > 1","d > 1"], min_max=(1, 10))}
|
||||||
\begin{align*}
|
\begin{align*}
|
||||||
A = \Var{e}
|
A = \Var{e}
|
||||||
\end{align*}
|
\end{align*}
|
||||||
|
@ -10,5 +10,4 @@ if __name__ == "__main__":
|
|||||||
snippets_dir = Path(SNIPPETS_DIR)
|
snippets_dir = Path(SNIPPETS_DIR)
|
||||||
for snippet in snippets_dir.rglob("tpl_*.tex"):
|
for snippet in snippets_dir.rglob("tpl_*.tex"):
|
||||||
print(snippet)
|
print(snippet)
|
||||||
assert os.system(f"bopytex -n {snippet}") == 0
|
os.system(f"bopytex -n {snippet}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user