Commit Graph

49 Commits

Author SHA1 Message Date
Émilie Feral
5fd415eb9e [poincare] Register Static Allocation Failure if required 2018-08-09 17:16:22 +02:00
Émilie Feral
87691157b3 [poincare] Decimal: fix typo 2018-08-09 10:52:04 +02:00
Émilie Feral
fef796f82f [poincare] Make methods returning an expression copy const 2018-08-09 10:52:04 +02:00
Émilie Feral
e6934d6c4a [poincare] Specify the method failedAllocationStaticNode for all nodes 2018-08-09 10:14:18 +02:00
Émilie Feral
4dc4acd7b8 [poincare] Fix Rational 2018-08-08 18:14:03 +02:00
Émilie Feral
aaa20a58fa [poincare] Implement SerializationHelper and
SerializationHelperInterface. WriteTextInBuffer->serialize
2018-08-08 15:31:40 +02:00
Romain Goyet
56fb29786e [poincare] ExpressionReference becomes Expression 2018-08-08 13:34:16 +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
ae1aa5ee14 [poincare] Fix Rational::NaturalOrder 2018-08-03 11:38:21 +02:00
Émilie Feral
05ba66cd21 [poincare] Correct Expression manipulation 2018-08-02 18:15:46 +02:00
Émilie Feral
54f9ea2d46 [poincare] Redesign of Expression: first attempt 2018-08-02 15:46:31 +02:00
Émilie Feral
48f890ef93 [poincare] AngleUnit, FormatComplex and PrintFloatMode are now
enumeration of Preferences class
2018-07-30 13:48:04 +02:00
Léa Saviot
cddbdaa71d [poincare] FractionLayoutNode 2018-07-20 10:50:53 +02:00
Léa Saviot
a3032e5ec3 Merge branch Tree into master 2018-07-19 14:01:02 +02:00
Émilie Feral
2e7c08241a [poincare] Change writeTextInBuffer signature (parameters are float
display mode and number of significant digits)
2018-07-18 16:32:50 +02:00
Émilie Feral
b8af15f1ab [poincare] change createLayout signature
- CreateLayout depends on the float display mode and the number of
significant digits
- Float display mode does not have a default value anymore
2018-07-18 16:32:50 +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
Léa Saviot
c4b5d4cf40 Merge branch 'SaisieJolieRebase1201' into SaisieJolieMerge10Apr
Change-Id: I802dbb9f7c0eebf75a1b6cd21ddd194e89b53752
2018-04-10 17:21:54 +02:00
Émilie Feral
6de71ae145 [poincare] Clean: convertFloatToText should be in PrintFloat instead of
Complex
2018-03-21 15:57:19 +01:00
Émilie Feral
26af09843e [poincare] Enable writeTextInBuffer to work with different numbers of
significant digits
2018-01-30 19:14:42 +01:00
Émilie Feral
4731cbd6e0 [poincare] Fix parenthesis addition on Complex object
Implement 'needParenthesisWithParent' instead of 'operandNeedParenthesis'
2018-01-30 16:17:03 +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
0cc1d99a54 [poincare] Static and Dynamic Layout hierarchies.
Change-Id: I3b47dbd76552b77db762482932518a74c1996cc0
2018-01-15 11:58:01 +01:00
Émilie Feral
4cbe8fbf52 [poincare] Stopping the process inside a SimplificationOrfer call is not
always enable

Change-Id: Iad4cc54d4f9b139e967ead8ee6f8e9635cc39351
2017-12-04 17:57:19 +01:00
Émilie Feral
fda382cc0d [poincare] Change name: evaluate->approximate
Change-Id: I649a7c640190713dcf063a4148decd6038e62796
2017-11-24 13:31:44 +01:00
Émilie Feral
53c66baa16 [poincare] Re-enable matrix in simplified expression-> handle matrix in
evaluate

Change-Id: I455845398f0799b9e25fd192ada7478c872ab892
2017-11-17 13:34:46 +01:00
Émilie Feral
8289264cfa [poincare] Fix BinomialCoefficient::shallowReduce
Change-Id: Iafc84162427db910e0c208297efe9904ce768313
2017-11-17 13:34:38 +01:00
Émilie Feral
d5fc8d139f [poincare] First version of Simplification with matrix (no tests yet!)
Change-Id: I28ad4750ad31995836b23725f7d715669fcb7ae2
2017-11-10 15:22:33 +01:00
Émilie Feral
a698611f01 [poincare] Add a NaturalOrder static method on Rational
Change-Id: I081b5ede2477032f840410236e73e2fc1f9def7a
2017-11-09 15:16:57 +01:00
Émilie Feral
ad86e76963 [poincare] Use Static Hierarchy shortcut constructor
Change-Id: I59f58df85ed8682913bb09dd60d316a4b3c18ddb
2017-11-03 13:06:05 +01:00
Émilie Feral
ef260f1f51 [poincare] Change names of cloneDenominator and addMissingFactors
Change-Id: Id204fd65dd129efc08659610afe34d6168114227
2017-11-02 13:43:28 +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
13ef08d628 [poincare] Change Expression::compareTo to SimplificationOrder
Change-Id: I0f3dff0a0933f55164573623253ee24f1a85d2a7
2017-10-31 11:25:12 +01:00
Émilie Feral
29f88f05d7 [poincare] Change turnIntoPositive and sign methods and API
Change-Id: Ib3ac679ba4a8c38fa051046e43f452fc7ae3b686
2017-10-31 10:21:38 +01:00
Émilie Feral
dbddba007e [poincare] Change names of simplify and beautify and made them private
Change-Id: I1a261cd272e524746896601cd28dd311c5e874c7
2017-10-30 17:57:26 +01:00
Émilie Feral
f7065717af [poincare] Rational::immediateSimplify: (-1)/3 -> - (1/3)
Change-Id: Ie92c1e852b85214c41ec328cf6e4f0f360e48e16
2017-10-27 14:33:55 +02:00
Émilie Feral
36925e08c1 [poincare] Implement evaluate in Rational
Change-Id: I8ef2b879ce3f61c0c33ad478f831202788ece532
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
Émilie Feral
1591b81b1e [poincare] Avoid to simplify already simplified rational
Change-Id: I3de374ecc94e518b9d987f8ebe565866f27ae590
2017-10-25 18:18:58 +02:00
Émilie Feral
80a06054bb [poincare] Implement writeTextInBuffer for all expressions
Change-Id: I3777bd893621459dc0fb7df3cf6c0f9d20ff5c7b
2017-10-25 18:18:58 +02:00
Émilie Feral
2cacda6d20 [poincare] Change isPositive method by int sign()
Change-Id: I575e7a48c4d5b82c93094f772bbafd41913646cc
2017-10-10 15:56:41 +02:00
Émilie Feral
22540b8ed4 [poincare] Fix bugs in rational
Change-Id: I26c14911b6ea73672e70eb3d794201cc577f3015
2017-10-06 18:25:53 +02:00
Émilie Feral
78b85ed0df [poincare] Add methods in rational
Change-Id: I4ed056792d3358f7c8502533c71c11dd93240fb9
2017-10-06 13:53:23 +02:00
Émilie Feral
40893e04c3 [poincare] Create rational class
Change-Id: I6cc8b42a473a3a7c7b96c369152c0c5eb5735de4
2017-10-05 15:01:14 +02:00