Commit Graph

564 Commits

Author SHA1 Message Date
Benjamin Bertrand
bcd5643202 move __str__ from expression to renderable 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
6428ab2c9e replace_letter now steal the history of the letter. 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
e02687c91b replace letter in abstact_poly and minor change in polynom 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
b1c4860964 Solve bug with gcd and random_expression 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
9dd3f750b6 all test pass!
It was an issue with reduce and not 'y' poly
2016-03-22 08:39:20 +03:00
Benjamin Bertrand
f62f572fb3 2var poly ok for results but bad with explain 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
a564708a31 Abs_poly handle 2var poly. Need to adapt Poly know 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
3abd4e89b5 fix bug shows with render mass test 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
9a141ec2f7 avoid a sideeffect in r_parenthesis 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
a0b014dd08 new clean postfix_tokens method for Abstact_Poly (still a bug with mass
test render)
2016-03-22 08:39:20 +03:00
Benjamin Bertrand
9529c32b50 steps for poly fixed! All test pass except one (need to fix) 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
fba7f16762 Adapt Fraction to steps 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
c314b55376 Step init from a Renderable. Step in Expression 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
9a11549cc1 Import Step in smpl_abspoly refact 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
219037e87a introduce Step remove pstf_factory in Expression 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
79104522ac Move Renderable to own file 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
20cae3e0a5 adapt abstract_polynom to new init 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
19069a41f7 new init for Expression 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
f5c64ce9e4 New init for fraction 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
e34215a9a9 new initiat for Renderable and Explicable - need to fix other 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
351a9002be steal_history in explicable 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
7f891956fc New representation for objects 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
04099040d4 __repr__ for *Polynom 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
976cbbdf03 Merge_history (from Explicable) and develop_steps (from Expression)
work together
2016-03-22 08:39:20 +03:00
Benjamin Bertrand
bfef87424d change the goal of merge_history 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
d1f074e8df allow no Explicable in merge_history and improve doctest 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
20d1ad8528 develop_steps become classmethod 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
142eaa9c32 solve unittest bugs and undetected develop_steps bug 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
190b247fe4 Explain now explain thing only once 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
b4df404cbd docstring mod 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
29d0234050 Create merge_history method for Explicable 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
b241142976 finish corr flake8 in calculus 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
edd83fe56a flake8 corr (not finish yet) 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
b6da1e24a1 dd docstring for explain for Explicable 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
ee03acf9fb this_append_before for Expression 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
619e809c6b this_append_before for Fraction 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
1ecdb458ae this_append_before for explicable ans abstract_polynom 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
5d4fe72764 code display in fraction.py 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
0b04f1eb48 slitely update TODO and bugs 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
7f5b9059b1 Refactor str2in_tokens use op.available_op from Operator_set 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
c81776e037 Solve bug with parenthesis and ^ 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
e0fb4da8ef solve final bug! :DDD 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
1b2d778ff6 pass doctest for abstract_polynom expression fraction generic and
polynom
2016-03-22 08:39:20 +03:00
Benjamin Bertrand
c2cdbea001 Pass tests for polynoms 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
3530660c0b add try in __eq__ for operator 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
26e12370b8 pass expression and str2tokens tests 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
3ae3d9fb2d Add and clear test for Operator and operator_set 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
5002fbe4ae Doctest for operator_set 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
1e3e0418df move test into class those tests are passed 2016-03-22 08:39:20 +03:00
Benjamin Bertrand
8ed382bbe2 refactoring op but tests are not passed yet 2016-03-22 08:39:20 +03:00