Commit Graph

211 Commits

Author SHA1 Message Date
Émilie Feral
24ca34e79c [poincare] Redesign Integer 2018-09-03 10:06:14 +02:00
Léa Saviot
cb9b498c9f [poincare] Change Node::shallowReduce call to Expression's 2018-08-31 14:05:08 +02:00
Léa Saviot
c9084816d7 [poincare] Change shallowReduce signature 2018-08-31 14:04:05 +02:00
Léa Saviot
6b7fce949e [poincare] setSign is not const anymore 2018-08-31 11:20:06 +02:00
Léa Saviot
c97f3cc929 [poincare] In Node::shallowReduce, pass futureParent to the Expression 2018-08-31 11:11:16 +02:00
Léa Saviot
832ccfaf23 [poincare] shallowReduce has additional argument and is not const 2018-08-31 11:03:41 +02:00
Léa Saviot
9049b81d2c [poincare] Add some comments 2018-08-22 10:43:28 +02:00
Léa Saviot
199a4386ee [poincare] Handle allocation failures in NaturalIntegerAbstract::udiv 2018-08-20 17:03:43 +02:00
Émilie Feral
466dafa2fa [poincare] Forbid unitiliazed Number (protect the method). Create a
Static Integer 0 to optimize the pool
2018-08-17 10:36:55 +02:00
Émilie Feral
3371d41b2c [poincare] Integer: fix and add tests on Factorial 2018-08-16 16:46:36 +02:00
Léa Saviot
e0dbb59c20 [poincare] Update some Power simplification methods 2018-08-16 15:39:33 +02:00
Émilie Feral
6068631b0a [poincare] Fix Integer::Division: enable to divide Integers up to
(2^32)^maxNumberOfDigits-1
2018-08-16 11:12:20 +02:00
Émilie Feral
7f0dc24f8d [poincare] Integer: add safeguards on infinite Integer 2018-08-14 18:20:12 +02:00
Émilie Feral
5b25c0c890 [poincare] Integer, Rational, Decimal: discard premature optimizations.
Overflow on Integer, Rational, Decimal nodes have a size corresponding to
their number of digits
2018-08-14 18:17:19 +02:00
Léa Saviot
5d9e69dedc [poincare] Remove Tree constructors that use nullptr as parameter 2018-08-14 14:58:47 +02:00
Émilie Feral
dab9b5cd21 [poincare] Fix and add tests on Integer::Division 2018-08-14 13:21:13 +02:00
Émilie Feral
ca1bd60688 [poincare] Clean Integer constructors 2018-08-13 19:48:36 +02:00
Émilie Feral
2bf0eefd92 [poincare] Integer: fix and add tests on Integer::Subtraction 2018-08-13 19:48:36 +02:00
Émilie Feral
47348b6d65 [poincare] Integer: fix and add tests on Integer::Addition 2018-08-13 19:48:36 +02:00
Émilie Feral
256cf5203d [poincare] Fix various bugs 2018-08-13 16:54:40 +02:00
Émilie Feral
c2bb07c948 [poincare] Fix size() of IntegerNode, RationalNode, DecimalNode 2018-08-13 14:57:10 +02:00
Émilie Feral
22aa86bc61 [poincare] Fix constructors of Integer, Rational and Decimal 2018-08-13 14:50:40 +02:00
Émilie Feral
ce64568bf4 [poincare] Integer: fix Overflow handling 2018-08-13 13:40:08 +02:00
Émilie Feral
2a4da23272 [poincare] Fix Integer constructor: avoid creating Integer without
setting the digits because at destruction the size() is wrong and
corrupt the pool
2018-08-13 13:40:08 +02:00
Émilie Feral
293cce6494 [poincare] Integer: fix typo 2018-08-13 11:49:38 +02:00
Romain Goyet
3ee18797db [poincare] Fix a small bug in Integer parsing 2018-08-10 21:32:53 +02:00
Romain Goyet
22e675937b [poincare] Use references for Integer::Addition Integer::Subtraction etc 2018-08-10 16:26:29 +02:00
Émilie Feral
8fad8f0223 [poincare] Missing template declarations 2018-08-10 11:20:54 +02:00
Émilie Feral
afcd19e1f7 [poincare] Integer: clean warnings 2018-08-09 18:10:09 +02:00
Émilie Feral
5fd415eb9e [poincare] Register Static Allocation Failure if required 2018-08-09 17:16:22 +02:00
Émilie Feral
01dabbfe01 [poincare] Add files to temporary Makefile 2018-08-09 11:00:38 +02:00
Émilie Feral
fef796f82f [poincare] Make methods returning an expression copy const 2018-08-09 10:52:04 +02:00
Émilie Feral
7548eb3960 [poincare] Fix Rational header 2018-08-08 17:18:19 +02:00
Émilie Feral
fd31b425aa [poincare] Fix Integer 2018-08-08 16:42:03 +02:00
Émilie Feral
aaa20a58fa [poincare] Implement SerializationHelper and
SerializationHelperInterface. WriteTextInBuffer->serialize
2018-08-08 15:31:40 +02:00
Émilie Feral
cb4bb4f8f0 [poincare] Engine-->Helper and break LayoutHelper into LayoutHelper and
SerializationHelper
2018-08-08 14:00:52 +02:00
Romain Goyet
56fb29786e [poincare] ExpressionReference becomes Expression 2018-08-08 13:34:16 +02:00
Émilie Feral
5cb179520f [poincare] Clean Integer 2018-08-03 16:39:57 +02:00
Léa Saviot
51363aaeac [poincare] Revert wrong renaming 2018-08-03 16:30:39 +02:00
Léa Saviot
7931d9ebfa Revert "[poincare] Rename addChildTreeAtIndex -> addChildAtIndex"
This reverts commit afd01f34e1.
2018-08-03 16:02:56 +02:00
Léa Saviot
afd01f34e1 [poincare] Rename addChildTreeAtIndex -> addChildAtIndex 2018-08-03 15:01:10 +02:00
Léa Saviot
5e6dea559f [poincare] Make add/remove methos protected on TreeRef
And public in NAryExpressionRef, HorizontalLayoutRef, ...
Also fix matrix addition of children
2018-08-03 14:54:34 +02:00
Émilie Feral
54f9ea2d46 [poincare] Redesign of Expression: first attempt 2018-08-02 15:46:31 +02:00
Léa Saviot
a3032e5ec3 Merge branch Tree into master 2018-07-19 14:01:02 +02:00
Émilie Feral
dd0bc491f6 [poincare] Replace Poincare::Complex by std::complex 2018-07-18 16:32:49 +02:00
Léa Saviot
07e7c3279d [poincare] Put back integer layout creation 2018-07-05 10:25:53 +02:00
Léa Saviot
f579e95815 [poincare] Start removing ExpressionLayout 2018-07-03 17:33:06 +02:00
Émilie Feral
bb8ab2a42e Merge branch 'saisie-jolie' into master-merge-saisie-jolie 2018-05-16 11:28:07 +02:00
Émilie Feral
6e1c0043e0 [poincare] In Decimal::convertToText, round mantissa rather than
truncate
2018-05-15 11:33:28 +02:00
Léa Saviot
c4b5d4cf40 Merge branch 'SaisieJolieRebase1201' into SaisieJolieMerge10Apr
Change-Id: I802dbb9f7c0eebf75a1b6cd21ddd194e89b53752
2018-04-10 17:21:54 +02:00