From 2763e46fabbc7581c3b7b5d8722c0745c2e735af Mon Sep 17 00:00:00 2001 From: Lafrite Date: Wed, 25 Feb 2015 10:17:01 +0100 Subject: [PATCH] Remove bugs from .gitignore and add a new bug --- .gitignore | 1 - bugs | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 bugs diff --git a/.gitignore b/.gitignore index 3db55bf..644cdba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ __pycache__/ *.pyc dist/ -bugs *.egg-info/ diff --git a/bugs b/bugs new file mode 100644 index 0000000..bd480c0 --- /dev/null +++ b/bugs @@ -0,0 +1,36 @@ +* Expression importe mal 4x^2 + In [9]: e = Expression("3x + 4x^2 - 1") + + In [10]: print(e) + 3 x + ( 4 x ) ^ 2 - 1 + + -> faire un test unitaire dessus + +* Render ne met pas les parenthèses là où il faut. + + In [31]: r + Out[31]: < Polynom [-4, -15, -14]> + + In [35]: print(r) + -14 * x ^ 2 + -15 x + ( -4 ) + + In [36]: r.get_postfix() + Out[36]: [-14, 'x', 2, '^', '*', -15, 'x', '*', '+', -4, '+'] + + In [37]: txt(r.get_postfix()) + Out[37]: '-14 * x ^ 2 + -15 x + ( -4 )' + + + -> faire un test unitaire dessus + +* Fraction ne simplifie pas correctement + + In [5]: for i in P.alpha.simplify(): + print(i) + ...: + \frac{ - 2 }{ 2 \times 3 } + \frac{ -2 }{ 6 } + \frac{ ( -1 ) \times 2 }{ 3 \times 2 } + \frac{ -1 }{ 3 } + \frac{ -2 }{ 6 } +