Commit Graph

174 Commits

Author SHA1 Message Date
780772ec2d Feat(API): Expression.from_str tries to build a token when it's
possible
2018-12-13 09:29:44 +01:00
8b6ede92c5 Feat(Core): Clarify power and degree for MO 2018-12-07 15:29:34 +01:00
cad6cd7182 Feat(Core): add coefficients property to MOstr, MOstrPower, MOMonomial 2018-12-07 15:09:39 +01:00
bcf589c607 Feat(API): factory build every tokens! 2018-12-07 11:23:05 +01:00
21cc3b68a3 Fix(core): Add doctest and simplify tree build 2018-12-07 11:21:40 +01:00
24b421209f Fix(Core): add exceptions handling in render (not convinced...) 2018-12-07 11:21:00 +01:00
79aaa3c5d9 Feat(core): add power attribut to MOPolynomial 2018-12-07 10:47:00 +01:00
1c02b57476 Fix(Core): degree method of MOpolynomial 2018-12-07 10:43:41 +01:00
5bf23a4793 Feat(API): integrate Token to Expression simplify 2018-12-07 10:27:50 +01:00
5938cc7875 Feat(API): throw basis of api maht object (token) 2018-12-07 08:10:15 +01:00
5d2611260a Fix(Core): bug with nested tree and parsing parenthesis 2018-11-27 17:11:06 +01:00
5cbefa3165 Fix(Core): Add mopoly * other and reorder monoms after * 2018-11-23 12:15:12 +01:00
9e4edc09e3 Feat(Core): Multiply 2 MOpolynomial together 2018-11-23 11:59:07 +01:00
55c0830671 Feat(Core): Compute with MOpolynomial with all but MOpolynomial 2018-11-23 11:53:37 +01:00
c8be5c1414 Doc(Core): Add docstring for monomials in MOPolynomial 2018-11-23 11:53:10 +01:00
2176cc65df Feat(Core): Multiply for monome is done 2018-11-23 11:24:33 +01:00
95634d366b Feat(API): Organise in calculus before computing 2018-11-23 10:06:33 +01:00
19d936ee8e Doc(Core): Add doctest in organise_by 2018-11-23 10:06:07 +01:00
8f99d1e71e Feat(Core): Add signature to mos 2018-11-23 10:05:36 +01:00
8933359945 Refect(Core): Improve error catch in apply and apply_on_last_level 2018-11-21 15:54:07 +01:00
fe52d9b346 style(API): Put multiple exceptions in one line 2018-11-21 09:51:14 +01:00
5ab5314899 Feat(API): In simplify first typing then optimize 2018-11-21 09:43:35 +01:00
505d2f1c09 Fix(Core): apply_on_last_level handle NotImplementedError 2018-11-21 09:37:17 +01:00
f53aa26542 Refact(API): Split simplify into _optimize, _typing, _compute 2018-11-21 08:54:37 +01:00
b4f9ced8a9 Doc(API): Adapt doctest to new computing order 2018-11-19 15:46:39 +01:00
4999e80ec3 Fix(Core): Change append_bot to respect natural computing order 2018-11-19 15:44:02 +01:00
e37a8a5a2e Fix(API): Rewrite tree apply_on_last_level and reorganise simplify 2018-11-19 12:23:37 +01:00
6edf4fe5b4 Fix(MO): Redefine strpower method of MOMonomial for deg 1 case 2018-11-19 12:21:59 +01:00
1be3b35e1b Feat(Core): Add compute add for 2 mostr and 2 mostrpower 2018-11-19 12:17:03 +01:00
8280640a4f Feat(Core): Add exceptions for add typing 2018-11-19 12:09:54 +01:00
ecf7e7678f Refact(Tree): Rename type_function to fallback in apply_on_last_level 2018-11-14 16:06:37 +01:00
eae88d6c4c Fix(Compute/Typing): Add MOpolynomial to MOS list 2018-11-14 16:05:38 +01:00
298093d97d Doc(Typing): Typing function return MO 2018-11-14 16:04:53 +01:00
3a89bcd24f Doc(Compute): update compute capacities 2018-11-14 11:05:35 +01:00
c176bb7bc4 Feat(Typing): Write all str related typing functions 2018-11-14 10:04:27 +01:00
a79ffb0cf9 Feat(Compute): Compute with monomials is done 2018-11-14 09:00:19 +01:00
b23d83b9da Feat(Compute): Add polynoms with polynoms 2018-11-13 16:19:02 +01:00
f6f6741398 Fix(MO): MOMonomial variable can be str in __init__ 2018-11-13 15:55:55 +01:00
17153dd345 Feat(Compute): Add MOpolynomial with scalar 2018-11-13 14:42:40 +01:00
a32fd7cbc6 Feat(Compute): Compute MOstr and MOstrPower 2018-11-13 12:12:36 +01:00
051d79cb9b Feat(Compute): Start add MO to create MOpolynomial 2018-11-13 11:40:21 +01:00
eff3ccf9f5 Feat(MO): Initiate MOpolynomial 2018-11-13 10:58:32 +01:00
abf056ce33 refactor(MO): Separate value and tree in MOs 2018-11-13 09:14:50 +01:00
5b9a35081a Feat(MO): Start polynomial 2018-11-12 09:41:39 +01:00
9d5b441402 Doc(Compute/typing): Make ComputeError and TypingError more clear 2018-10-10 10:46:58 +02:00
d2f67a0961 Fix(Render): Ajust "*" visibility with variables 2018-10-10 10:40:40 +02:00
e6abc208a0 Feat(compute): Multiply strpower and str done
Discover bug with str and * printing
2018-10-10 10:28:38 +02:00
ddf15e4276 Feat(compute): Write powers of fraction 2018-10-10 10:13:58 +02:00
78e781be62 Feat(compute): Start compute with power 2018-10-08 17:57:17 +02:00
5e254a26eb Feat(Tree): Add organise for AssocialTree 2018-10-05 16:21:14 +02:00
94c117151d Fix(Fraction): debug successive division (1 to MOnumber(1)) 2018-10-05 11:20:08 +02:00
2489eccb74 Fix(parsing): Remove spaces in string before parsing 2018-10-05 10:31:51 +02:00
9e0a703e98 Feat(Tree): Add exclude_nodes in balance to trees 2018-10-05 08:52:04 +02:00
948402755a Feat(Expression): Implement balance in expression 2018-10-04 08:16:59 +02:00
89d7baaed2 Doc(Tree): Add solution to doctest in balance 2018-10-04 08:13:20 +02:00
42dbfe9c86 Feat(Tree): Write balance Tree method 2018-10-04 08:11:08 +02:00
4d75361c9d Feat(Tree): Deep and short branch property for trees 2018-10-01 17:36:12 +02:00
e9a865a14a Feat(API): use balance before computing to optimize calculus 2018-10-01 16:14:04 +02:00
1266a2331b Fix(compute): clean typing multiply 2018-10-01 16:13:13 +02:00
b24069a72d Fix(compute): split multiply between compute and type 2018-10-01 11:55:35 +02:00
ddab3cebad Feat(tools): Make 2 methods to explain capacities of compute and typing 2018-10-01 08:54:15 +02:00
f3f93d31a7 Doc(typing): Add dynamic docstring to typing 2018-09-28 10:46:16 +02:00
2bbcfaf482 Doc(Compute): Add dynamic table for sum up implemented operations 2018-09-28 10:43:12 +02:00
a557fa3981 Fix(steps): Typing steps are bypassed
Useless steps where complex objects were built are not shown. I create
a typing function which is called when compute raise
NotImplementedError.
2018-09-24 17:21:50 +02:00
0e479323dd Test(core): Write doctest on computing with fractions 2018-09-24 15:47:47 +02:00
d09d8a3d98 Put example in API/__ini__ 2018-09-20 18:40:04 +02:00
49a09fd52c Better printing of MOs in API 2018-09-20 18:38:49 +02:00
b63405592f doctests 2018-09-20 18:27:40 +02:00
a343d62078 Add example of trees for testing 2018-09-20 18:26:57 +02:00
40cc8d00b6 basic simplify and explain methods for Expression 2018-09-17 18:18:29 +02:00
5687ccb302 Start writing expression class 2018-09-17 16:29:00 +02:00
ec25cfab53 Add doctest 2018-09-17 16:27:20 +02:00
b1241e0844 documentate what we can do with core 2018-09-17 16:27:08 +02:00
f8e00a8638 Create MOstrPower and start adding it into multiply 2018-03-18 10:34:46 +03:00
3b59e0ffb0 Generic function for MO: __eq__ and __hash__ 2018-03-18 10:34:15 +03:00
3f3e52cdf8 Decorator for computing special cases 2018-03-17 11:55:32 +03:00
f4422c6d1a Use multipledispatch to define divide (plus dostring for add) 2018-03-17 10:38:59 +03:00
c08ea7b86a Use multipledispatch for multiply 2018-03-17 10:28:43 +03:00
f2fb80c55b Build minus with multipledispatcher 2018-03-17 10:15:46 +03:00
9610ee1c7e Use multipledispatcher to define add for MO 2018-03-17 10:04:53 +03:00
0cef131c41 Render momonial and multiply with scalar 2018-03-17 08:45:23 +03:00
b0ff919693 synthtize comparison for MOnumber 2018-03-15 16:38:25 +03:00
985032b1af type filter for operations 2018-03-15 16:37:48 +03:00
6e2cc96781 Start MOMonomial class 2018-03-14 11:42:43 +03:00
3aa7c92f54 Add doctest in MO.factory and an error message 2018-03-14 11:42:10 +03:00
6763ae6074 Modify the way ^ is rendering 2018-03-14 11:40:57 +03:00
eff438b930 Move MOError to exceptions.py 2018-03-14 11:04:13 +03:00
d1c6e2d3da Overload operators for MOnumbers in order to use gcd 2018-03-13 18:57:38 +03:00
3c133250ec Multiply and divide are ok for MOnumber and MOFraction 2018-03-13 17:12:41 +03:00
e4efa1028e Some PEP8 rectifications 2018-03-13 14:43:48 +03:00
e9046c49ff Rewrite compute and remove reference to computing in OPERATORS 2018-03-13 05:46:14 +03:00
832946ed49 Remove reference to compute in Tree 2018-03-12 20:01:52 +03:00
25f791bd81 Minus MO 2018-03-12 19:27:01 +03:00
98381f4512 Add 2 fractions works! 2018-03-12 07:34:26 +03:00
5f5fcc5a79 Multiply with MOnumber and MOFraction 2018-03-11 20:05:17 +03:00
9baf6c5dbd Remove bug with MOnumber = 0 2018-03-11 20:04:47 +03:00
b10492533e Throw bases for computing (and start tiding exceptions) 2018-03-11 18:34:41 +03:00
b2239e0e56 str2tex done and integrate into MO 2018-03-10 16:08:28 +03:00
d14850c78d Rearrange folders and use tree2txt inside MO 2018-03-10 08:44:01 +03:00
d498af2bab tree2txt is done and doctested 2018-03-10 08:03:55 +03:00