Commit Graph

29 Commits

Author SHA1 Message Date
Émilie Feral
7b5f3c570d [poincare] Change the way Expression are built 2019-02-21 11:29:35 +01:00
Léa Saviot
70707a9985 [poincare] Infinity::Name() gives "inf" 2018-11-23 12:04:08 +01:00
Léa Saviot
63e83c246b [poincare] Undefined::Name() gives "undef" 2018-11-23 12:04:08 +01:00
Lionel Debroux
1a8c6b6ae9 [poincare, escher, ion, apps] Split the huge umbrella header poincare.h, to reduce build time.
This should be a NFC, but surprisingly, it also reduces size... so what does it change ?
2018-10-23 11:49:09 +02:00
Émilie Feral
2bf62f2304 [poincare] Fix Decimal(double) constructor 2018-09-24 18:23:24 +02:00
Émilie Feral
ac9b889a67 [poincare] PrintFloat: fix convertFloatToText to display the correct
number of significant digits (instead of the number of decimal digits)
2018-09-19 16:12:12 +02:00
Émilie Feral
c02691a84b [poincare] Float can be serialize 2018-09-18 18:22:02 +02:00
Émilie Feral
c95c3145bc Merge remote-tracking branch 'github/master' into Tree 2018-09-13 17:03:31 +02:00
Émilie Feral
33e491d962 [poincare] Tests: get rid of dynamic allocation in
convert_expression_to_text
2018-09-11 13:20:06 +02:00
Émilie Feral
6f97f5babc [poincare] Fix tests convert_expression_to_text 2018-08-29 16:52:31 +02:00
Émilie Feral
a1bcbe28e6 [quiz] Turn all assert in quiz_assert 2018-08-28 10:40:52 +02:00
Émilie Feral
aaa20a58fa [poincare] Implement SerializationHelper and
SerializationHelperInterface. WriteTextInBuffer->serialize
2018-08-08 15:31:40 +02:00
Émilie Feral
9fbdc60572 [poincare] Add test to Decimal::convert_expression_to_text 2018-08-03 17:22:44 +02:00
Émilie Feral
48f890ef93 [poincare] AngleUnit, FormatComplex and PrintFloatMode are now
enumeration of Preferences class
2018-07-30 13:48:04 +02:00
Émilie Feral
1e0836ed74 [poincare] Fix tests 2018-07-18 17:09:07 +02:00
Émilie Feral
d89b6ef85a [poincare] Fix tests 2018-07-18 17:09:07 +02:00
Émilie Feral
fa840754e8 [poincare] Fix tests: convert_expression_to_text 2018-05-15 11:33:28 +02:00
Émilie Feral
1669bee2f6 [poincare] Fix Decimal::convertToText 2018-05-15 11:33:28 +02:00
Émilie Feral
67cfb93987 [poincare] PrintFloat: fix error due to float/double prevision
floor(abs(100000))*pow(10,-5)= 0.9999999 instead of 1
2018-05-04 17:32:23 +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
f9241bd7e6 [poincare] Decimal: writeTextInBuffer has to handle cases when the
mantissa is too big to be serialize
2018-02-01 11:49:39 +01:00
Émilie Feral
a53d6eb0df [poincare] fix convertFloatToText: compute the exponent from the 2-base
exponent in IEEE754
2018-01-30 15:51:10 +01:00
Émilie Feral
81016fa168 [poincare] Get 14 significant digits when writing complex to text
Change-Id: I0bdcc932782dce91d5861acc698e5b2f7a15355c
2017-11-30 10:47:20 +01:00
Émilie Feral
79b174337a [poincare] Fix bug in complex convertFloatToText
Change-Id: I04a8b88acef9426ab728df57c789af5a644b9c54
2017-11-30 10:35:42 +01:00
Émilie Feral
40da35f17c [poincare] Clean and sort tests
Change-Id: Ia6a66f5d6e568731ba4127c94a073f7fd62bc26a
2017-11-29 09:44:35 +01:00
Émilie Feral
5acafb0cdb [poincare] Cap the length of integer that are printed
Change-Id: I6d5e1f1201d1354ca48fee6f84dc0400143b7347
2017-11-23 14:52:25 +01:00
Émilie Feral
7e68cbf386 [poincare] Fix bug when converting double to decimal: 0.999999999999999
exponent is -1 but it is stored with a mantissa of 1

Change-Id: I48f79a7aacc9fc69674f7d32e49d2d528f80ca16
2017-11-17 13:32:57 +01:00
Émilie Feral
ed6c6d2b20 [poincare] Add a constructor in Decimal to build from a double
Change-Id: If00cd2cff8fa254a95c28a807df5db5857a2d577
2017-11-10 23:58:20 +01:00
Émilie Feral
81b3a544d9 [poincare] Fix writeTextInBuffer of Decimal to handle negative decimal
Change-Id: Ie9900145eab43a402e21c1fabc6d4d2199a2169f
2017-11-10 20:17:03 +01:00