Commit Graph

7312 Commits

Author SHA1 Message Date
Émilie Feral
9a74d22bd9 [poincare] Change names: child->operand
Change-Id: Ib15e317c8166e4ad73752cc11b6597b86214b35e
2017-11-02 13:59:14 +01:00
Émilie Feral
6a7a653843 [poincare] New unary tests
Change-Id: Ic58b2bb956dbacceaedb7b829bf9b9490c24ebce
2017-11-02 13:48:14 +01:00
Émilie Feral
e41d4a21c0 [poincare] Clean
Change-Id: I6a582a850f440572c99fe215167747626de6da8c
2017-11-02 13:44:36 +01:00
Émilie Feral
4570106dba [poincare] Improve Addition::factorizeOnCommonDenominator
Change-Id: I0e0e31ae6fcb71b546a2e4b90a9d43b6868c6444
2017-11-02 13:44:14 +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
20714334af [poincare] In Arithmetics, add LCM
Change-Id: Iadf69597e900e9d4dc26793857fe91378bcc76c2
2017-11-02 13:37:03 +01:00
Émilie Feral
f2d8544639 [poincare] New constructor in Rational
Change-Id: I86bc434f439515104d68d45736fac2e4efd46377
2017-11-02 13:26:08 +01:00
Émilie Feral
bbc1256087 [poincare] Change API of addOperand in Dynamic Hierarchy
Change-Id: Ice6ca5d7e3725798a4aa94362fb061175540b7e8
2017-11-02 13:25:18 +01:00
Émilie Feral
86c5d29cb0 [poincare] Add a shortcut constructor in Hierarchy
Change-Id: I2b0de8ab43ae6a0503814a48a20991b4c92572ea
2017-11-02 13:24:02 +01:00
Émilie Feral
15273979aa [poincare] Clean addition
Change-Id: Ica1c102c7ef59c30323ba6a32ad7a5440bed9323
2017-11-02 13:23:10 +01:00
Émilie Feral
9636f087cc [poincare] Clean
Change-Id: Ibbdd8479337ab1204c6a53255205255e02290c17
2017-10-31 15:01:16 +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
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
3012e360e8 [poincare] Fix index error in Power::shallowSimplify
Change-Id: I134df29dab28060361412c97122e6b1562cffaf4
2017-10-31 10:13:24 +01:00
Émilie Feral
8fefc092b1 [poincare] Change name and API of containType
Change-Id: I57617c13a810400a13de774b0abc23db9adf9d15
2017-10-30 18:04:52 +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
fd3605a4ba [poincare] Create a method editableOperand in expression to avoid
const_cast

Change-Id: Icd5531eb7693ced0214a4be6d0c9f6d1220afea5
2017-10-30 17:09:09 +01:00
Émilie Feral
5e28520b72 [poincare] Clean
Change-Id: Ic5ef6a9632e181a0c3797b2230912f46306f7e1b
2017-10-30 14:04:09 +01:00
Émilie Feral
a18aaa0a7b [poincare] Fix bug in Division::writeTextInBuffer: add parenthesis when
required

Change-Id: I93c1320984aed91102e3b06df29f6baa30f6aca7
2017-10-30 13:58:05 +01:00
Émilie Feral
242eac7f0b [poincare] Fix bug in Multiplication::createDenominator
Change-Id: Ia753fc8e72d5e5c20e639838d4ab00506e48ccc9
2017-10-30 11:35:06 +01:00
Émilie Feral
2e6ee2e1f2 [i18n] Fix bug in universal messages
Change-Id: I5c228ae1ba782ee66bace56b9f909455585089ec
2017-10-30 09:40: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
f4fbd43ace [poincare] In Multiplication::immediateBeautify: turn 3/4+PI/4 in
(3+PI)/4

Change-Id: I298115a4fadb237a1cba9aef19709dd3b834853d
2017-10-27 14:06:59 +02:00
Émilie Feral
c5a5a48836 [poincare] Change 1+-6*cos(2) -> 1-6cos(2)
Change-Id: Ic5dde9bf2f8a76d17a34544be0d17beaf94f6905
2017-10-27 14:06:42 +02:00
Émilie Feral
91d50bd4e1 [poincare] Get rid of square root at denominator
Change-Id: I5cfc06d147159ea072f97edb8b92c920272ba184
2017-10-27 11:51:59 +02:00
Émilie Feral
c59d8d7bd5 [poincare] Imporve tangent to resolve tan/sin = 1/cos
Change-Id: I7e23c7f680b6702c373bcc78f553bcb0c22bd574
2017-10-27 11:47:24 +02:00
Émilie Feral
7a54b2b0c4 [poincare] Fix bug
Change-Id: I6232b050f2f1db69c326a3200b4d6ed11856c04b
2017-10-27 10:15:43 +02:00
Émilie Feral
86d23dd0f5 [poincare] Avoid square root monome at denominator
Change-Id: I93e55dce3a8e1b3c8db9721a081b376e8a8a0099
2017-10-26 17:57:17 +02:00
Émilie Feral
dc11739c39 [poincare] Trigonometry in Degree
Change-Id: I755b03b5149e189278fc9a89c1d273b0168d0f20
2017-10-26 15:09:45 +02:00
Émilie Feral
700126f26b [poincare] Add arccos(-x) = Pi-arccos(x), arcsin(-x) = - arcsin(x) and
arctan(-x) = -arctan(x)

Change-Id: I48d9fa5fa70f53a545917e1a309025cbbacf8ed8
2017-10-26 14:58:37 +02:00
Émilie Feral
ce0d700e96 [poincare] Fix bug in Addition::factorizeCommonDenominator
Change-Id: I4ff06769babd0370c5b437eb4f3784b9b8309b34
2017-10-26 13:30:37 +02:00
Émilie Feral
3cc7b1fe74 [poincare] Fix principal angle in [0, Pi/2[ in Trigonometry
Change-Id: I7b19cd90e9ef98341867ad0e2002e092eb31b4a3
2017-10-26 11:27:28 +02:00
Émilie Feral
8fcdcbb773 [poincare] add tests
Change-Id: I96232633c170cb26d36ccb12fcf3b560368219e7
2017-10-26 10:08:57 +02:00
Émilie Feral
57b9d996a7 [poincare] ArcTangent::immediateSimplify
Change-Id: I9c1f8d817361d625ccf8c1732d6886edf8d7118f
2017-10-26 10:01:14 +02:00
Émilie Feral
6781a83054 [poincare] Test for Undefined operand before calling immediateSimplify
Change-Id: I4baf8e004cc62700b8ad026dcd8be0ae8ebefbeb
2017-10-26 10:01:14 +02:00
Émilie Feral
abec9f5572 [poincare] immediateSimplify of ArcSine
Change-Id: I3543919c259e79efe0a8ed4a04a6b4a301704c86
2017-10-26 10:01:14 +02:00
Émilie Feral
f14b2a9e42 [poincare] Implement Factorial::immediateSimplify
Change-Id: I7bd7b3fd41421ebc8536d5dca4a261435022f7a7
2017-10-26 10:01:13 +02:00
Émilie Feral
bf2e0c7714 [poincare] Fix Multiplication::writeTextInBuffer
Change-Id: Ib61305168bd7dcf9857bf5b69e628d84ff13bb08
2017-10-26 10:01:13 +02:00
Émilie Feral
0feb55fc02 [poincare] Fix bug in Trigonometry::immediateSimplify
Change-Id: I698d91f262df242e272de4fbe64dd76f54087757
2017-10-26 10:01:13 +02:00
Émilie Feral
8c21f1634d [poincare] Fix bug in Division::immediateSimplify
Change-Id: I5978988ebd10c3474e0a3e779c0ecfe5d36555e8
2017-10-26 10:01:09 +02:00
Émilie Feral
6b80fd8882 [poincare] Repair Multiplication::immediateBeautify
Change-Id: I470eaa774cbb247daf6cf5a97b8f32fcab8de1d4
2017-10-26 10:00:38 +02:00
Émilie Feral
e3057d5c2b [poincare] Change multiplication sign
Change-Id: If58f62fa181ce7aac441d42d44ea65d68f0d6421
2017-10-25 18:19:01 +02:00
Émilie Feral
a1c15dd84d [poincare] First version of ArcCosine::immediateSimplify
Change-Id: I416db89ab4e689c082bf773d28575ee5b0e1a0ca
2017-10-25 18:19:01 +02:00
Émilie Feral
217a44c049 [poincare] Add context and angle unit as simplify parameters
Change-Id: I0167bf968da7cfd521676a7ace05792e5b560284
2017-10-25 18:19:00 +02:00
Émilie Feral
2acca473de [poincare] Fix bug in tests
Change-Id: I27a3d60deea740fd42c5b6cc5f46c551e3e2e615
2017-10-25 18:19:00 +02:00
Émilie Feral
8ae77eb456 [poincare] Use scientific display when decimal are too small or too big
Change-Id: Ia09785f682e559d3572cb56bbb0eb2779af4d06b
2017-10-25 18:19:00 +02:00
Émilie Feral
196407747f [poincare] Fix bug in Decima::writeTextInBuffer
Change-Id: I4cbd3e33fe04b478ebfa7b983ecbf03757d1eb23
2017-10-25 18:19:00 +02:00
Émilie Feral
df18bc169a [poincare] Factorize code of Integer::approximate
Change-Id: Iaa24553b2ec64868836cb006906ed85aec930d5c
2017-10-25 18:19:00 +02:00