Commit Graph

138 Commits

Author SHA1 Message Date
É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
Émilie Feral
d9150d4faa [poincare] Integer: fix approximate, round instead of truncate integers
to closest float
2018-03-21 15:57:19 +01:00
Émilie Feral
97df52d0c5 [poincare] Integer: clean approximate 2018-03-21 15:57:19 +01:00
Émilie Feral
4e3692f532 [poincare] Factorize code about IEEE754 conversion 2018-03-21 15:57:19 +01:00
Émilie Feral
b1f6b31b8c [poincare] "inf" should never appear at serialization 2018-02-01 11:49:39 +01:00
Léa Saviot
55044d8e0b [poincare] Update Expression's privateCreateLayout().
We use the new layouts and no longer the old ones such as StringLayout
or BaselineRelativeLayout.

Change-Id: Ic15167b694c3adab46f348c8f823ce19b3e5ef33
2018-01-15 11:58:05 +01:00
Léa Saviot
f49168d779 [poincare] Use editable String and BaselineRelative layouts.
Change-Id: I978c4aa43772b294251b948fc20bb0d8b8b05a08
2018-01-15 11:58:01 +01:00
Émilie Feral
8c37e8a6d0 [poincare] Fix integer subtraction (overflow in carry) 2017-12-08 10:57:43 +01:00
Émilie Feral
ccf97c0e74 [poincare] Clean Integer::udiv
Change-Id: I40735d10499ea2cf3c9a9f8f327eb3fec9ebee7b
2017-12-04 17:57:24 +01:00
Émilie Feral
1edd7ac095 [poincare] Fix bug in Integer subtraction!
Change-Id: I2404d5d3b32e282c42cefb34e10d52ea44ba8931
2017-12-04 17:57:24 +01:00
Émilie Feral
d726d582c9 [poincare] Correct assert
Change-Id: I00e71eedd63e0c7d81250bedeca4813e7eaba671
2017-12-01 17:56:50 +01:00
Émilie Feral
95ce07dfc7 [poincare] In Integer::approximate, exclude special case 0 first to
avoid breaking assertions

Change-Id: I7dea2e05a485a581251b43be1814f00615f17594
2017-12-01 11:54:00 +01:00
Émilie Feral
3f0328f5b5 Add assertions for dangerous bit shift that could trigger undefined
behaviour

Change-Id: I051ed229d407eafcae1ea4b5fc745176a751e036
2017-12-01 11:53:55 +01:00
Émilie Feral
da2829b969 [poincare] Clean Integer constructor
Change-Id: I1ced5587246507d3cd813b0c23af64f3459c6d0c
2017-11-30 10:48:38 +01:00
Émilie Feral
11ab2a871f [poincare] Fix bug in casting Integer to float/double
Change-Id: Ibfc0be39dd6e90e99e226b40f4171c01f54ddae1
2017-11-30 10:35:39 +01:00
Émilie Feral
5acafb0cdb [poincare] Cap the length of integer that are printed
Change-Id: I6d5e1f1201d1354ca48fee6f84dc0400143b7347
2017-11-23 14:52:25 +01:00
Romain Goyet
52bdf4a41f Merge branch 'cas_with_app_copy' into python_console 2017-11-21 18:44:38 +01:00
Émilie Feral
8a4af478cf [poincare] Add a constructor in Integer
Change-Id: Icf84821d1b898dbe353a2ee3cda7cfbb5c0b5468
2017-11-10 18:19:15 +01:00
Émilie Feral
045c02a213 [poincare] Fix setNegative in Integer
Change-Id: I32515c23c8897a3ce1d1cd4f238340397efc3366
2017-11-10 18:16:46 +01:00
Émilie Feral
889a0d8eb4 [poincare] Change natural comparison names in Integer
Change-Id: Ifdd4ef3991e650d601a378a9742ae2371915ce77
2017-10-31 12:02:31 +01:00
Émilie Feral
ae31a78ca6 [poincare] Integer: clean names
Change-Id: Ia6926ea8a506c91b933b6ca47dd8918217733221
2017-10-31 11:33:54 +01:00
Émilie Feral
f14b2a9e42 [poincare] Implement Factorial::immediateSimplify
Change-Id: I7bd7b3fd41421ebc8536d5dca4a261435022f7a7
2017-10-26 10:01:13 +02:00
Émilie Feral
df18bc169a [poincare] Factorize code of Integer::approximate
Change-Id: Iaa24553b2ec64868836cb006906ed85aec930d5c
2017-10-25 18:19:00 +02:00
Émilie Feral
1363c3a65f [poincare] Integer class is not an expression anymore
Change-Id: Iee1037593752a3825b8b9b58f21e296aae71e2cf
2017-10-25 18:19:00 +02:00