Commit Graph

43 Commits

Author SHA1 Message Date
Émilie Feral
6de71ae145 [poincare] Clean: convertFloatToText should be in PrintFloat instead of
Complex
2018-03-21 15:57:19 +01:00
Émilie Feral
f2db9f2065 [apps] Calculation: exact and approximate output can be equal even if
the exact output is not a rational: 1/2+i = 0.5+i
2018-01-30 19:14:42 +01:00
Émilie Feral
ed59909531 [apps] Calculation: avoid 1/400000 = 0.000003
Re-serialise the calculation approximate output with the right number of
significant digits before comparing the parsed expression with the exact
one
2018-01-30 19:14:42 +01:00
Émilie Feral
9d6b2e3cad [apps] Calculation: add a method to test if the exact output and the
approximate output are equal
2018-01-30 19:14:42 +01:00
Émilie Feral
36a3108309 [apps] Calculation: move implementation of ansExpression() from
Calculation to CalculationStore
2018-01-30 16:17:03 +01:00
Émilie Feral
59fdcde548 [poincare] Avoid returning partial simplification when the
simplification process has been interrupted
2018-01-30 16:17:03 +01:00
Émilie Feral
775432efdc [poincare][apps] Replace Ans symbol when preprocessing the calculation 2018-01-16 15:17:16 +01:00
Émilie Feral
17fc7998a2 [apps] Calculation: Ans is exact only when the expression hold is exact 2018-01-16 15:17:16 +01:00
Émilie Feral
d6d31b4eb0 [apps] Calculation: clean unused methods 2018-01-16 15:17:16 +01:00
Émilie Feral
01d456299f [apps] Add comment
Change-Id: I53bdeb08625a2699408f563b0b3ed6c45744d01d
2017-11-28 17:03:33 +01:00
Émilie Feral
0b0f765f6b [apps] In calculation, return only approximation when input involves
symbols A-Z

Change-Id: Ibf50fb516b01850c5f93c5153f4d550d3e459028
2017-11-28 11:43:06 +01:00
Émilie Feral
fda382cc0d [poincare] Change name: evaluate->approximate
Change-Id: I649a7c640190713dcf063a4148decd6038e62796
2017-11-24 13:31:44 +01:00
Romain Goyet
52bdf4a41f Merge branch 'cas_with_app_copy' into python_console 2017-11-21 18:44:38 +01:00
Émilie Feral
7c772d85b7 [apps] In calculation, do not display exact output if it is identical to input
Change-Id: I4b0733c7e3090bc2b04c68661bd34cf0b6da17f1
2017-11-21 17:37:25 +01:00
Émilie Feral
5fd8fda4b1 [calculation] Display exact and approximate results
Change-Id: Id5fe5b5db464c45f09bd1a1285def95e738a78c7
2017-11-21 17:37:25 +01:00
Émilie Feral
6c51c584f2 [apps] Change Calculation to hold an exact and an approximate output
Change-Id: I1805839e17cd42b82f06ce0a320d20b49cd2a6cd
2017-11-21 17:37:25 +01:00
Romain Goyet
3d10d3e951 Use zero-initialization for character arrays
It makes some not-fully-compliant compilers happy
2017-10-19 17:31:40 +02:00
Jacob Young
17ac54cad5 Use cmath in c++ files. 2017-10-13 18:08:15 +02:00
Émilie Feral
35a9753609 [poincare][apps] Memory leaks
Change-Id: I2338760fb52bcf57997f7d82fd1f5cee68e95266
2017-08-25 11:20:49 +02:00
Émilie Feral
82e212e771 [poincare] Template for double
Change-Id: I7404bd5cefc9ef78a5dbd572c3874a557cded28e
2017-08-16 09:55:29 +02:00
Émilie Feral
1964d61fdc [libaxx] add cmath and use cmath instead of math.h when required
Change-Id: Id839b17d33c69e2e002f370e553ff35246a1bc90
2017-08-16 09:55:29 +02:00
Émilie Feral
37fd06c2a5 [apps/calculation] Fix memory leak
Change-Id: I8f41f589a67e4b3ac641650ad8c6f44f7363f031
2017-08-09 16:42:07 +02:00
Émilie Feral
f73ddcd08f [poincare] Evaluation return numerical matrix
Change-Id: I58dbc93ad22a086580a77318b2524db9c70e47d2
2017-08-03 13:47:11 +02:00
Émilie Feral
b64a4110af Change name: Algebric -> Cartesian
Change-Id: I7855e9df1d401f9a3c0e95c933078852594ff309
2017-06-21 13:11:08 +02:00
Émilie Feral
49f4e9b6e3 [apps/calculation] Add comment
Change-Id: I552e851cb0d5035f0bfa9d617e499c085c9d3078
2017-05-31 11:56:33 +02:00
Émilie Feral
1d877e5a26 [apps/calculation] Rebuild calculation from input and output text (to
ensure that the evaluation corresponds to the right context)

Change-Id: If9fcf4e3dfb01434008ad57c3d1a5f735b5779d3
2017-05-31 11:54:54 +02:00
Émilie Feral
2286de8fcd [apps/calcualtions] In calculation, fix isEmpty method
Change-Id: I3a03450a4d4f102f0915d3de1deb7715907acf06
2017-05-31 11:54:54 +02:00
Émilie Feral
e75beb661f [apps/calculation] Add test for rinn buffer of calculation store
Change-Id: I99b9c75b7bc4927b693a67bb5c022d991eb8dec6
2017-05-30 13:17:22 +02:00
Émilie Feral
6b136d8378 [apps/calculations] Resolve bug in ring buffer
Change-Id: I1e34530f0e257e5e6a04c4ce974461888279b486
2017-05-30 09:53:12 +02:00
Émilie Feral
71284311bb [escher] [apps] Implement app snapshot
Change-Id: I24d7eed7cef964af8be1c85222e758c297dc0da1
2017-05-18 14:16:41 +02:00
Émilie Feral
65235d0551 [apps/calculation] Fix bug with ans
Change-Id: I8691c7901783e61518eae2cdb33632f2eb3e9247
2017-03-31 16:59:43 +02:00
Émilie Feral
a019289a6a [poincare] Implement complex format
Change-Id: I98731b356cce0ae3107fd0a660697241210692ae
2017-03-07 15:53:05 +01:00
Émilie Feral
e5e9f7cc41 [poincare][apps] Make preferences a const object accessible from
anywhere (poincare and apps)

Change-Id: I49cc6bf940d1efeb6b153daac949ffcb23999a8d
2017-02-20 09:39:24 +01:00
Émilie Feral
4f7658b271 [apps] Ensure to reset pointers when their content have been deleted
Change-Id: I4c236c045cbe5e6ba215cbf56b27eba92133b675
2017-02-17 16:34:57 +01:00
Émilie Feral
69e46f4958 [poincare] Namespace Poincare
Change-Id: I51a84fa7978ba16f128cfe1d32c390970f2037e8
2017-02-13 17:15:06 +01:00
Émilie Feral
39dab5125c [apps] Add angle unit preference in apps
Change-Id: I25eb760883d164563cb3059d73e8d1fff92ad6da
2017-02-06 16:30:48 +01:00
Émilie Feral
b37688745e [apps/calculation] Create input and output layout according to display
mode set in preference

Change-Id: If161958b2fcdad802fda5f8e0c44f8a5fc9d9ef1
2017-02-02 10:28:59 +01:00
Émilie Feral
e1f808e7da [apps/calculation] Change names: expression->input, evaluation->output
Change-Id: I9d65a9fc7d1b7132ae3aaa8a86e4511286b7e3da
2016-12-09 11:01:44 +01:00
Émilie Feral
357f971120 [poincare] Change name: createEvaluation -> evaluate
Change-Id: I8f241541af0435c6ab4f7ba1f561f880c4e95ac0
2016-12-08 17:10:36 +01:00
Émilie Feral
0448278e36 [calculation] Make the results of calculation expressions
Change-Id: I9eb685b21944cfc6cc346a42d442f064ae5938dd
2016-12-08 15:21:52 +01:00
Émilie Feral
17fcccd31f [apps/calculation] Correct assignement operator
Change-Id: I1ef13c064b9151b8d0b1b53fb6c40c6f2ba2304b
2016-11-04 11:08:15 +01:00
Émilie Feral
e9795b16da [apps/calculation] Change calculation store model to be a buffer ring
Change-Id: Ic444456288e68dcf7b78705880b9507de0a95a2d
2016-10-26 16:26:12 +02:00
Émilie Feral
b101308922 [apps/calculation] Rename calcul->calculation
Change-Id: I57ca7353516cee2da33470a8a0f622a21c3fe7e9
2016-10-25 17:55:28 +02:00