Commit Graph

47 Commits

Author SHA1 Message Date
Émilie Feral
dab9b5cd21 [poincare] Fix and add tests on Integer::Division 2018-08-14 13:21:13 +02:00
Émilie Feral
88a3077f95 [poincare] Integer: tests on Multiplication 2018-08-13 19:48:36 +02:00
Émilie Feral
2bf0eefd92 [poincare] Integer: fix and add tests on Integer::Subtraction 2018-08-13 19:48:36 +02:00
Émilie Feral
47348b6d65 [poincare] Integer: fix and add tests on Integer::Addition 2018-08-13 19:48:36 +02:00
Émilie Feral
d64f40eb1d [poincare] Integer: test on constructors, comparison 2018-08-13 17:01:34 +02:00
Romain Goyet
50d6eee4f4 [poincare] Add some integer tests 2018-08-10 16:27:13 +02:00
Émilie Feral
d9150d4faa [poincare] Integer: fix approximate, round instead of truncate integers
to closest float
2018-03-21 15:57:19 +01:00
Émilie Feral
8c37e8a6d0 [poincare] Fix integer subtraction (overflow in carry) 2017-12-08 10:57:43 +01:00
Émilie Feral
1edd7ac095 [poincare] Fix bug in Integer subtraction!
Change-Id: I2404d5d3b32e282c42cefb34e10d52ea44ba8931
2017-12-04 17:57:24 +01:00
Émilie Feral
da2829b969 [poincare] Clean Integer constructor
Change-Id: I1ced5587246507d3cd813b0c23af64f3459c6d0c
2017-11-30 10:48:38 +01:00
Émilie Feral
045c02a213 [poincare] Fix setNegative in Integer
Change-Id: I32515c23c8897a3ce1d1cd4f238340397efc3366
2017-11-10 18:16:46 +01:00
Émilie Feral
1363c3a65f [poincare] Integer class is not an expression anymore
Change-Id: Iee1037593752a3825b8b9b58f21e296aae71e2cf
2017-10-25 18:19:00 +02:00
Émilie Feral
942862dacf [poincare] Reimplement Integer::Division non recursively
Change-Id: Ifd51a787a08aa376ce73b9574987ee358a11e1df
2017-10-25 18:18:59 +02:00
Émilie Feral
b5c06fd22b [poincare] Implement Integer::Division in Z (relative integers)
Change-Id: I72ccd4afd8188b0389b1f32863ecb1af59581c04
2017-09-28 16:17:32 +02:00
Émilie Feral
76c4a82bb5 [poincare] Add tests on integer division
Change-Id: I83bc1807c3ab265bd73960740f223b1df556447d
2017-09-26 17:11:16 +02:00
Romain Goyet
b064fabad9 [poincare] Clean the Integer class
Change-Id: I010f571b521a5c45f6131040d396dc0241517728
2017-09-25 14:24:50 +02:00
Émilie Feral
82e212e771 [poincare] Template for double
Change-Id: I7404bd5cefc9ef78a5dbd572c3874a557cded28e
2017-08-16 09:55:29 +02:00
Émilie Feral
f73ddcd08f [poincare] Evaluation return numerical matrix
Change-Id: I58dbc93ad22a086580a77318b2524db9c70e47d2
2017-08-03 13:47:11 +02:00
Émilie Feral
69e46f4958 [poincare] Namespace Poincare
Change-Id: I51a84fa7978ba16f128cfe1d32c390970f2037e8
2017-02-13 17:15:06 +01:00
Romain Goyet
5963345981 [poincare] NULL-termination and Integer parsing
Discard non-10 base handling for now

Change-Id: I487e85a169c7ae5780c83b0bcf3c40bd3daac0fe
2016-12-21 10:13:06 +01:00
Émilie Feral
7af3979d3b [poincare] Change Context API
Change-Id: I2818866fb41bf73c39396fbd85600e586a79065c
2016-12-15 13:51:41 +01:00
Émilie Feral
397a4ad98f [poincare] Add tests on matrix operations
Change-Id: I4f0070a32abe5eb4b06dfc6dfca0bbd83e666f34
2016-12-09 11:01:43 +01:00
Felix Raimundo
6f5cc68b75 Fix Integer approximation for 0.
Change-Id: Ib4bab6f4f776342bf6311d1e6f8b6d245d9a048a
2016-04-22 16:52:44 +02:00
Felix Raimundo
47f361a667 Make the addition public.
Change-Id: I9b277f0a959f36453215de7dbb98b8f8dad69544
2016-04-18 18:48:56 +02:00
Felix Raimundo
80ad6e606b Removed all warnings, now in Werror
Change-Id: I02dbd9fef2c1b5d6aba4ea713f1e1ea305b389bf
2016-03-22 18:56:00 +01:00
Felix Raimundo
1f9b440182 Added some basic tests for the AST members.
Change-Id: I9a1f297fb72a57e9b58e3951c22066134c8da9ea
2016-03-22 18:39:59 +01:00
Felix Raimundo
a5f01b35af Fix integer test compilation.
Change-Id: Icf8f4a6f88f6ba8c31f51f3d37dca334faad94a6
2016-03-22 18:39:59 +01:00
Romain Goyet
71bae0c7cf [poincare] Proper layout engine 2015-09-21 23:58:33 +02:00
Romain Goyet
7b7553cd1a [poincare] Division 2015-09-21 17:57:50 +02:00
Romain Goyet
73052ed07f [poincare] Integer addition and subtraction 2015-09-21 17:49:51 +02:00
Romain Goyet
7408bcc483 [poincare] relative integer comparison 2015-09-21 14:56:51 +02:00
Romain Goyet
4fb2236ab5 [poincare] Relative integer string parsing 2015-09-21 14:52:59 +02:00
Romain Goyet
9473d0d89e [poincare] handle relative integer product 2015-09-21 14:49:54 +02:00
Romain Goyet
73de311edc [poincare] integer comparison 2015-09-21 12:05:30 +02:00
Romain Goyet
791cceb68e [poincare] better integer test 2015-09-20 18:32:57 +02:00
Romain Goyet
629f6b3aa6 [poincare] Integer can now parse hex and binary numbers 2015-09-19 20:17:35 +02:00
Romain Goyet
1a88f2b392 [poincare] refactor Integer 2015-09-17 15:10:45 +02:00
Romain Goyet
b762589b91 [poincare] more assertions 2015-09-17 12:18:21 +02:00
Romain Goyet
6aedfb66e3 [Poincare] Proper Integer approximation 2015-09-16 19:14:11 +02:00
Romain Goyet
003f6c4446 [Poincare] Correct Integer product 2015-09-16 19:08:57 +02:00
Romain Goyet
51e2d23180 [Poincare] Integer parsing! 2015-09-15 10:55:40 +02:00
Romain Goyet
7848bcc750 [Poincare] Don't count bits, count digits 2015-09-14 23:01:44 +02:00
Romain Goyet
8de6ed9703 [Poincare] Add more tests for the Integer class 2015-09-14 19:54:41 +02:00
Romain Goyet
388f0ec954 [Poincare] First working BigInt addition! 2015-09-14 18:57:31 +02:00
Romain Goyet
df70a72c27 [Poincare] Add Expression::approximate 2015-09-07 18:25:57 +02:00
Romain Goyet
107dd016d0 [Quiz] Support C++ cases 2015-09-03 23:51:47 +02:00
Romain Goyet
2bb2a2af28 [Quiz] Cleanup 2015-09-03 23:15:09 +02:00