Commit Graph

1406 Commits

Author SHA1 Message Date
Léa Saviot
53a2f3705e [poincare] ArcCosine 2018-08-24 16:21:24 +02:00
Émilie Feral
74967904f8 [poincare] Change static_cast<Expression> to static_cast<Expression&>
when necessary and possible
2018-08-24 16:02:48 +02:00
Émilie Feral
556ea6b269 [poincare] Expression::Type --> ExpressionNode::Type 2018-08-24 13:13:37 +02:00
Léa Saviot
0a806a582a [poincare] Refactor operand() to childAtIndex() 2018-08-24 09:54:33 +02:00
Léa Saviot
bb58230f34 [poincare] Add missing const to shallowReduce 2018-08-24 09:49:36 +02:00
Léa Saviot
9e0702a13c [poincare] Refactor to make shallowReduce const 2018-08-23 17:08:47 +02:00
Léa Saviot
97a6257c6c [poincare] Tangent 2018-08-23 15:42:50 +02:00
Léa Saviot
2bf6d27013 [poincare] Fix Sine and Cosine 2018-08-23 15:42:21 +02:00
Léa Saviot
67cf8a1a46 [poincare] Sine 2018-08-23 14:06:31 +02:00
Léa Saviot
462a3816a8 [poincare] Cosine 2018-08-23 13:51:51 +02:00
Léa Saviot
279d99676f [poincare] Finish translating Trigonometry 2018-08-23 11:24:19 +02:00
Léa Saviot
691abe79ca [poincare] Derivative 2018-08-23 11:19:25 +02:00
Léa Saviot
3f8dd83e78 [poincare] Start fixing Trigonometry 2018-08-22 18:04:25 +02:00
Émilie Feral
fcec3017fc [poincare] Parse Decimal Number 2018-08-22 16:28:07 +02:00
Léa Saviot
8035dcac63 [poincare] Fix Logarithm 2018-08-22 15:47:25 +02:00
Léa Saviot
4e1f8da1f7 [poincare] NaperianLogarithm 2018-08-22 15:47:09 +02:00
Léa Saviot
61317756bb [poincare] Logarithm without Reduce + tests 2018-08-22 15:25:23 +02:00
Léa Saviot
a399bd3d4d [poincare] Fix exception logging 2018-08-22 10:51:00 +02:00
Léa Saviot
50667fde49 [poincare] Fix AllocationFailure log ('[' not accepted) 2018-08-22 10:45:33 +02:00
Léa Saviot
8d31969108 [poincare] Add Roots parsing 2018-08-21 17:59:07 +02:00
Léa Saviot
2b647756f1 [poincare] Fix typo 2018-08-21 16:17:25 +02:00
Léa Saviot
b829286caa [poincare] NthRoot 2018-08-21 16:11:06 +02:00
Léa Saviot
9418932578 [poincare] Fix Rational::IntegerPower for negative integer 2018-08-21 15:55:09 +02:00
Émilie Feral
5ad42a19e5 [poincare] Fix Multiplication 2018-08-21 15:17:57 +02:00
Léa Saviot
c8a498c996 [poincare] Unncomment more tests 2018-08-21 15:05:46 +02:00
Léa Saviot
7ca084ca91 [poincare] SquareRoot 2018-08-21 14:37:38 +02:00
Léa Saviot
d013e969ca [poincare] Fix Tree logging typo 2018-08-21 14:18:28 +02:00
Émilie Feral
d4f6629e8c [poincare] Correct didAddChildAtIndex and addChildAtIndexInPlace for
Matrices
2018-08-21 12:05:09 +02:00
Léa Saviot
fe0e81312b [poincare] Complex should not be a std::complex, ComplexNode is 2018-08-21 11:56:51 +02:00
Émilie Feral
d1f28d5bc2 [poincare] Implement missing simplification methods of Multiplication 2018-08-21 11:22:08 +02:00
Émilie Feral
69161a9fff [poincare] getPolynomialCoefficients is implemented on Addition instead
of on AdditionNode to avoid relying on likely-to-be-corrupted node
2018-08-21 11:22:08 +02:00
Léa Saviot
3fcca45498 [poincare] Complete Matrix class to prepare for parsing 2018-08-21 10:42:47 +02:00
Léa Saviot
23e009efb5 [poincare] Override more methods in AllocationFailureExpressionNode 2018-08-21 10:42:47 +02:00
Émilie Feral
b86e11f82d [poincare] Implement Number::NaturalOrder 2018-08-20 18:09:47 +02:00
Émilie Feral
5cc81ab7b7 [poincare] Number operations are by Reference to avoid useless copy 2018-08-20 18:09:47 +02:00
Léa Saviot
ed3018dc74 [poincare/test] Add addition tests 2018-08-20 17:05:48 +02:00
Léa Saviot
cd8b460001 [poincare] Escape replace/removeChild when tree is alloc fail 2018-08-20 17:01:44 +02:00
Émilie Feral
35cbdeabf5 [poincare] Rational: get numerator and denominator with 3 getters:
signedIntegerNumerator, unsignedIntegerNumerator, integerDenominator
which all return Integer
2018-08-20 15:43:12 +02:00
Léa Saviot
7d9c6618eb [poincare] Override setSign on all Numbers 2018-08-20 11:26:07 +02:00
Léa Saviot
60cd8a2fe4 [poincare] Clean Power and be cautious we Rationals that can be numbers 2018-08-20 11:03:31 +02:00
Léa Saviot
d3d969021a [poincare] Implement class Float 2018-08-17 17:18:26 +02:00
Émilie Feral
0b9cf08f77 [poincare] Addition: replace Rational by Number 2018-08-17 17:08:56 +02:00
Léa Saviot
335c760c70 [poincare] Suppress some warnings 2018-08-17 16:48:13 +02:00
Léa Saviot
9664c65794 [poincare] Use the new cast operator on Expression in Power 2018-08-17 16:42:01 +02:00
Léa Saviot
4aa7fabdb1 [poincare] Expression casting to derived classes 2018-08-17 16:12:55 +02:00
Émilie Feral
368739e485 [poincare] Power: Newton multinome 2018-08-17 15:37:56 +02:00
Émilie Feral
b85ad1b276 [poincare] Fix ExceptionExpressionNode, AllocationFailure and
UninitializedExpressionNode
2018-08-17 14:28:55 +02:00
Léa Saviot
e9eac428b9 [poincare] Power::shallowReduce 2018-08-17 13:23:43 +02:00
Émilie Feral
bff65e630d [poincare] Fix OppositeNode::numberOfChildren 2018-08-17 12:11:26 +02:00
Émilie Feral
766efc21a8 [poincare] Rational: avoid useless copy, use Reference instead 2018-08-17 11:52:39 +02:00