Commit Graph

7312 Commits

Author SHA1 Message Date
Léa Saviot
e8227d5f0f [poincare] Fix setjmp in Poincare::parse 2018-09-05 14:49:15 +02:00
Léa Saviot
ea1fe18b17 [poincare] Clean some methods in Expression 2018-09-05 14:48:54 +02:00
Léa Saviot
1aa12eef6b [poincare] Fix missing const in static_cast 2018-09-05 14:47:59 +02:00
Léa Saviot
679f9815c1 [poincare] Put setjmp in apps_container and in Expression::parse 2018-09-05 14:37:52 +02:00
Léa Saviot
a233df7619 [poincare] Fix DataNotSuitable message (was too long) 2018-09-05 14:31:54 +02:00
Émilie Feral
c762b31bc2 [poincare] Replace the overriding of operator T() by an inline function
to cast Expression in Derived Expression
2018-09-05 13:46:39 +02:00
Léa Saviot
c6237ab448 [poincare] First attempt at setjump/longjump exceptions 2018-09-04 17:37:22 +02:00
Émilie Feral
da57433fef [poincare] Fix bug in Multiplication constructor 2018-09-04 17:32:45 +02:00
Émilie Feral
a57350e1d7 [poincare] Fix typo 2018-09-04 16:59:05 +02:00
Émilie Feral
f749efaba0 [poincare] TreeByReference: parent is reset at cloning 2018-09-04 16:46:30 +02:00
Émilie Feral
dafeae1fa0 [poincare] Forbid using addChildAtIndexInPlace or removeChildInPlace in
Expression other than Matrix, Multiplication, Addition
2018-09-04 16:45:50 +02:00
Émilie Feral
d3150b696c [poincare] Fix TreeByReference::mergeChildrenAtIndexInPlace: to access
childAtIndex, the number of children of each node should be correct
2018-09-04 15:19:25 +02:00
Émilie Feral
e360c1f0d2 [poincare] Add addition test 2018-09-04 14:52:31 +02:00
Émilie Feral
3302bdf282 [poincare] Missing template declaration 2018-09-04 14:52:31 +02:00
Émilie Feral
69f0a833f4 [poincare] Fix Decimal::convertToText 2018-09-04 14:52:30 +02:00
Émilie Feral
b482ba3403 [poincare] Fix several bugs: clone forgotten etc 2018-09-04 14:52:30 +02:00
Émilie Feral
abc9b96380 [poincare] squashUnaryHierarchy is done in-place 2018-09-04 14:52:24 +02:00
Émilie Feral
0b71e92625 [apps] Add missing min/max redefinition 2018-09-04 12:19:49 +02:00
Émilie Feral
b2b0f4fab0 [apps] Clean buffer size declaration 2018-09-04 12:19:49 +02:00
Émilie Feral
9ddfdf9b81 [poincare] The third parameter of strlcpy is a size_t: fix error when
converting a signed int to size_t
2018-09-04 12:19:49 +02:00
Léa Saviot
f56eb31197 [poincare] Fix problem in TreeNode keeps parent ID 2018-09-04 11:17:20 +02:00
Léa Saviot
6b9db23942 [poincare] A TreeNode keeps the identifier of its parent 2018-09-04 10:43:34 +02:00
Émilie Feral
90f337f6a0 [poincare] Add forgotten replaceWith 2018-09-03 17:13:34 +02:00
Émilie Feral
81089b7b9c [poincare] Fix bug in Addition::shallowBeautify: stealing child will
replace them by Ghost
2018-09-03 16:33:11 +02:00
Émilie Feral
5f65c59916 [apps] VariableBoxController cannot access private methods of Expression 2018-09-03 15:56:37 +02:00
Émilie Feral
3eb3568e60 [calculation] Fix replacement of ANS symbol 2018-09-03 15:56:37 +02:00
Émilie Feral
859cdb317f [calculation] Build tests for Calculation Store 2018-09-03 15:56:37 +02:00
Émilie Feral
6521c9ef67 [poincare] Fix Integer tests 2018-09-03 15:56:37 +02:00
Émilie Feral
f9530168f4 [poincare] Fix Integer::serialize 2018-09-03 15:56:36 +02:00
Léa Saviot
c8ba9c9d49 [poincare] Fix TreeByReference::setTo when this has ID -1 2018-09-03 15:45:34 +02:00
Léa Saviot
7cb1c6a43d [poincare] Do not choose static nodes identifiers 2018-09-03 15:45:34 +02:00
Émilie Feral
a0fb5b0f6f [poincare] Fix Trigonometry: shallowReduceDirectFunction,
shallowReduceInverseFunction are in place
2018-09-03 15:33:14 +02:00
Léa Saviot
392fa7a43d [poincare] UninitializedGhost node
Needed to look for its parent in replaceWithGhost
2018-09-03 15:30:12 +02:00
Léa Saviot
257052f424 [poincare] Init poincare (the shared pool) before running tests 2018-09-03 15:07:56 +02:00
Léa Saviot
3ab83388dd [poincare] Make tests compile 2018-09-03 15:05:19 +02:00
Léa Saviot
6668dda48c [poincare] Symbol 2018-09-03 14:48:04 +02:00
Émilie Feral
9b216eff59 [poincare] Fix Subtraction::shallowReduce 2018-09-03 14:45:35 +02:00
Émilie Feral
cde73df38e [poincare] Integer optimization: small digit doest not allocate anything 2018-09-03 14:45:35 +02:00
Émilie Feral
0a6e2bbf63 [poincare] No clone on Integer: copy assignment and copy constructor
automatically clone
2018-09-03 14:45:35 +02:00
Émilie Feral
9197957365 [poincare] Make some methods of Expression public to be used by the
parser
2018-09-03 14:45:35 +02:00
Léa Saviot
9e18dcc189 [poincare] SquareRoot and Store 2018-09-03 14:44:54 +02:00
Léa Saviot
4b94288386 [poincare] Update RealPart and Round 2018-09-03 14:34:46 +02:00
Léa Saviot
77e0f11194 [poincare] Update prediction_interval 2018-09-03 14:29:13 +02:00
Léa Saviot
11309205af [poincare] Update power 2018-09-03 14:22:50 +02:00
Émilie Feral
c730f33a97 [poincare] Fix Logarithm shallowReduce, shallowBeautify in place 2018-09-03 13:21:26 +02:00
Émilie Feral
36b4298019 [poincare] Add a default constructor to Integer 2018-09-03 11:45:48 +02:00
Léa Saviot
697e5cfbe0 [poincare] Update NthRoot and PermuteCoefficient 2018-09-03 11:39:41 +02:00
Émilie Feral
3269f29dd9 [poincare] Integer are not Numbers anymore 2018-09-03 11:37:39 +02:00
Émilie Feral
dba1aeb246 [poincare] Fix Decimal with the new Integer API 2018-09-03 11:37:39 +02:00
Léa Saviot
6fa0b7684e [poincare] Fix Integer is not an Expression in Multiplication 2018-09-03 11:32:32 +02:00