Commit Graph

530 Commits

Author SHA1 Message Date
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
Lafrite
e3d1870d33 Add exception for invalid expression 2014-12-21 16:03:53 +01:00
Lafrite
027a3ac57a solve bug with simplify fraction (which has not be simplified) 2014-12-21 15:03:56 +01:00
Lafrite
2425a2dfca solve issue wit - and polynoms 2014-12-21 08:53:10 +01:00
Lafrite
8f4d63595d solve issue with - and polynoms 2014-12-20 20:36:15 +01:00
Lafrite
a77d779a22 no expression with last elem of Expression.simplify 2014-12-20 18:48:51 +01:00
Lafrite
dbe382f892 postfix in postfix change + to - 2014-12-20 17:42:31 +01:00
Lafrite
096e025302 Merge branch 'dev' into polynom 2014-12-20 17:26:49 +01:00
Lafrite
9dbe971cd1 add __getitem__ and __setitem__ to Expression 2014-12-20 16:52:45 +01:00
Lafrite
1acf73c598 Change set_df_render to set_default_render 2014-12-20 16:43:58 +01:00
Lafrite
6ca79a4e69 random classmethod for polynoms 2014-12-19 17:29:12 +01:00
Lafrite
adce8e1348 Random classmethod for polynom 2014-12-19 17:17:25 +01:00
Lafrite
d817002430 random expression is now a Expression classmethod 2014-12-19 16:45:22 +01:00
Lafrite
5df17b4779 dd simplified method for Expression 2014-12-19 15:42:37 +01:00
Lafrite
450af74a0d Merge remote-tracking branch 'origin/dev' into dev 2014-12-19 15:26:36 +01:00
lafrite
edae08d3bc add doctest operator 2014-12-03 16:25:02 +01:00
lafrite
ffd2a55b65 add doctest in random_expression 2014-12-03 15:52:08 +01:00
lafrite
573945a63a add test on printing for Fraction 2014-12-03 15:14:50 +01:00
lafrite
f033cbad85 Update packaging with distutils 2014-12-03 15:03:07 +01:00
lafrite
b518a85bef add requirements file 2014-12-03 15:02:59 +01:00