Commit Graph

270 Commits

Author SHA1 Message Date
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
lafrite
b8ca063368 Yeah! Unittest works! 2014-12-02 14:33:45 +01:00
lafrite
ff605c87cb okfor doctest 2014-12-02 14:31:27 +01:00
lafrite
543af69979 Doctest and bugs in str2tokens 2014-12-02 12:37:23 +01:00
lafrite
e1da8d2453 operator selector 2014-12-02 11:32:59 +01:00
lafrite
cecf06e082 inside doctest works not unittest 2014-12-02 11:06:29 +01:00
Lafrite
cccfb9e90b does not work.. 2014-12-02 10:05:02 +01:00
lafrite
fec78c03d4 test with no * between number and letter - doctest in operator
Conflicts:
	pymath/operator.py
2014-12-01 06:42:43 +01:00
lafrite
24fb46e3d0 can't put spaces in {} in random_expression 2014-11-25 10:48:24 +01:00
lafrite
8485890fdf test with no * between number and letter - doctest in operator 2014-11-25 10:46:00 +01:00
Lafrite
6d8d72cdff start particularising operators 2014-11-24 07:17:51 +01:00