Commit Graph

249 Commits

Author SHA1 Message Date
Lafrite
9649a0dbaf start working on deg 2 polynoms 2015-01-23 17:19:14 +01:00
Lafrite
f00d8c9e57 mod fraction simplify test 2015-01-09 13:15:57 +01:00
Lafrite
61bc284805 Merge branch 'fraction' into dev 2014-12-28 10:48:29 +01:00
Lafrite
02df267acf Adapt Fraction with Expression.tmp_render 2014-12-28 10:47:19 +01:00
Lafrite
8881a15c9b Adapt Polynom with Expression.tmp_render env 2014-12-28 10:28:31 +01:00
Lafrite
48c2c1dc78 new classmethod for Expression tmp_render which is used with "with" 2014-12-28 10:25:21 +01:00
Lafrite
35f2b46521 mod div priority 2014-12-27 16:48:32 +01:00
Lafrite
694cda47ca add random_str to create random string 2014-12-27 16:32:44 +01:00
Lafrite
f67e0541b8 finish first part of tutorial 2014-12-27 16:11:48 +01:00
Lafrite
c5f7119029 Merge branch 'dev' into documentation 2014-12-27 16:06:07 +01:00
Lafrite
30f9554ff2 modernize Fraction and add doctests 2014-12-27 16:04:30 +01:00
Lafrite
dfb056e1cf change simplify in expression test 2014-12-27 15:47:55 +01:00
Lafrite
d3c1aaa9a1 write documentation (random_Expression hasn't been touch yet) 2014-12-27 07:37:49 +01:00
Lafrite
ffe3b628ea correct tests in test_str2tokens 2014-12-23 14:29:39 +01:00
Lafrite
74b463d2af add Docstring for postfix in Polynom and solve bug with - and list 2014-12-23 10:55:18 +01:00
Lafrite
f301b7f0ae oups just sth had been pasted 2014-12-23 10:39:31 +01:00
Lafrite
3f7cac0ddc Comment in AttributeError for __pw__ 2014-12-23 10:34:51 +01:00
Lafrite
e6170fab97 doctest and improve display for powers and mul in polynom 2014-12-23 10:32:15 +01:00
Lafrite
1f86b234ea change str to self.STR_RENDER in Expression.simplify 2014-12-23 10:07:36 +01:00
Lafrite
5b4ef79982 add deco power_cache for __pw__ of polynom 2014-12-22 20:42:18 +01:00
Lafrite
eabe3e9a8e add overload ^ and ** for fractions 2014-12-22 19:56:58 +01:00
Lafrite
5cba9763e4 overload ^ and ** for monoms 2014-12-22 15:54:07 +01:00
Lafrite
d5c0a86109 Poly eval with poly works 2014-12-22 15:32:17 +01:00
Lafrite
f64ad83faf think it's important but can't remember... 2014-12-22 15:31:00 +01:00
Lafrite
457896c847 save letter in generated Polynoms 2014-12-22 15:30:07 +01:00
Lafrite
af18870786 solve bug with the changing render in polynom 2014-12-22 15:22:51 +01:00
Lafrite
c35ca2f2a8 solve bug in polynom with 0 and reduce 2014-12-22 14:20:56 +01:00
Lafrite
7498127e48 indent error in expression 2014-12-22 14:17:12 +01:00
Lafrite
16c0b5b8fc comment a unittest 2014-12-22 14:15:30 +01:00
Lafrite
2de1b1add8 mod expression with operands 2014-12-22 14:14:37 +01:00
Lafrite
8dd90bc85a change way to build fake 2014-12-22 11:53:32 +01:00
Lafrite
d2928a38d2 numerand spelling... 2014-12-22 11:46:42 +01:00
Lafrite
7d26fd722a add isNumerande into generic 2014-12-22 11:44:14 +01:00
Lafrite
4c7ede0956 fake_str in expression 2014-12-22 11:21:58 +01:00
Lafrite
5b7c9d412c test on str2tokens with poly 2014-12-22 11:03:44 +01:00
Lafrite
1ae92b22f5 str2tokens handle polynoms 2014-12-22 10:57:18 +01:00
Lafrite
895c8ed145 isPolynom move to generic 2014-12-22 10:50:34 +01:00
Lafrite
b5db3df0ec isPolynom move to generic 2014-12-22 10:50:14 +01:00
Lafrite
4b5dabd12c __eq__ return false if other can't be converted to polynom 2014-12-22 10:31:05 +01:00
Lafrite
d5d889eeb0 try evaluate polynoms with other polynoms 2014-12-22 10:13:20 +01:00
Lafrite
f6739f8c7c Expression can create fake in with simplify and simplified methods 2014-12-22 09:38:51 +01:00
Lafrite
981c8db0e5 Add compute_exp in simplified 2014-12-21 19:13:52 +01:00
Lafrite
1729ef1d24 add test on eval 2014-12-21 19:13:34 +01:00
Lafrite
108c794a04 solve bug with expression like [2, op.sub1] 2014-12-21 19:03:44 +01:00
Lafrite
cd6e8c5ca3 docstring of __str__ in Expression 2014-12-21 18:26:05 +01:00
Lafrite
a4a58f05a0 solve bug in polynom with Expression.set_render 2014-12-21 18:22:33 +01:00
Lafrite
09ceb07f41 Merge branch 'unittest' into polynom 2014-12-21 18:11:45 +01:00
Lafrite
fff148324f change test_arithmetic to be use with pytest. Add setup in
test_expression
2014-12-21 18:10:52 +01:00
Lafrite
2bbe6eca7d eval polynom but does not work with constant polynoms. Need unittest 2014-12-21 18:03:22 +01:00
Lafrite
a38ba53577 sove bug with negative fractions display 2014-12-21 16:04:44 +01:00