Commit Graph

7312 Commits

Author SHA1 Message Date
Émilie Feral
b009cdfc87 [poincare] Implement Decimal::evaluate
Change-Id: Iaf2b1047fe59d69ddbc619127dadfb4880175944
2017-10-25 18:19:00 +02:00
Émilie Feral
36925e08c1 [poincare] Implement evaluate in Rational
Change-Id: I8ef2b879ce3f61c0c33ad478f831202788ece532
2017-10-25 18:19:00 +02: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
a0ca7009ba [poincare] Implement Expression::containType
Change-Id: Ifa894768191cd75a5a529b50fd540e0bb2a10dc5
2017-10-25 18:18:59 +02:00
Émilie Feral
a8d2a93fe6 [poincare] Fix bug in decimal
Change-Id: I890cbbc0116d8b7d5a0c2530e9bf14eadf783454
2017-10-25 18:18:59 +02:00
Émilie Feral
652848918b [poincare] Avoid drawing useless parenthesis in fraction
Change-Id: Icaf53930501e27ce8b3e65aa71396c5581566c16
2017-10-25 18:18:59 +02:00
Émilie Feral
b54c43ee62 [poincare] Fix bug in decimal writeTextInBuffer
Change-Id: Idd03a56590f4bbd9435e63f69966bf81b9ccac6a
2017-10-25 18:18:59 +02:00
Émilie Feral
07e9ee9da3 [poincare] Clean engine layout
Change-Id: I31ea44473904cc040ce6aeb7763eee1ffc5dc758
2017-10-25 18:18:59 +02:00
Émilie Feral
e982ef5e76 [poincare] Add a class decimal
Change-Id: Ifa036b40b589f35e3b83dbd287c3fd30a35b7b5a
2017-10-25 18:18:59 +02:00
Émilie Feral
942862dacf [poincare] Reimplement Integer::Division non recursively
Change-Id: Ifd51a787a08aa376ce73b9574987ee358a11e1df
2017-10-25 18:18:59 +02:00
Émilie Feral
f7288597e6 [poincare] (temporary) parse inf as Undefined object
Change-Id: I4cd64690e11ddc7e7f91daecaa94599efdd80b33
2017-10-25 18:18:58 +02:00
Émilie Feral
a96c7052f5 [poincare] Fix bug in Undefined
Change-Id: I41ccf8ca0779c7cc398b6ca8722c42cde6948863
2017-10-25 18:18:58 +02:00
Émilie Feral
1591b81b1e [poincare] Avoid to simplify already simplified rational
Change-Id: I3de374ecc94e518b9d987f8ebe565866f27ae590
2017-10-25 18:18:58 +02:00
Émilie Feral
154129c932 [poincare] clean
Change-Id: I3710822da5d99854de1a77426e4d2480698fff4e
2017-10-25 18:18:58 +02:00
Émilie Feral
7fee8daccb [poincare] Complete implementation of AbsoluteValue::immediateSimplify
Change-Id: Iedc4d680ad8861932af96a5ec6f3a2289db9f346
2017-10-25 18:18:58 +02:00
Émilie Feral
7228e806db [poincare] Change signature of turnIntoPositive
Change-Id: I0ed8daee0a779ba921d266859b34f1d2d6c1705a
2017-10-25 18:18:58 +02:00
Émilie Feral
80a06054bb [poincare] Implement writeTextInBuffer for all expressions
Change-Id: I3777bd893621459dc0fb7df3cf6c0f9d20ff5c7b
2017-10-25 18:18:58 +02:00
Émilie Feral
5a2f547b6a [poincare] Fix bug in sin(pi/5)
Change-Id: Id2484caf608ec040ff4d2028a3b5184942772dfb
2017-10-25 18:18:57 +02:00
Émilie Feral
11faf3eb70 [poincare] Add cos(pi/5) sin(°i/5) in the trigo table
Change-Id: I6826bd5228c2484def126be90ab0a569fb74ed83
2017-10-25 18:18:57 +02:00
Émilie Feral
44f2dd2ebc [poincare] Repair Multiplication::immediateSimplify
Change-Id: Ie63b2312d1465bbb7793258b8e3d2cca536a8c92
2017-10-25 18:18:57 +02:00
Émilie Feral
0ad79b50ad [poincare] Division::immediateBeautify: sin/cos -> tan
Change-Id: Iae3a3afa60809ae4c1593265b24405a962131304
2017-10-25 18:18:51 +02:00
Romain Goyet
b671a812e1 [liba] Mark abort() as noreturn
Fix #213
2017-10-20 19:59:45 +02:00
Romain Goyet
5a2446eff7 [liba] Proper support for function-like macros for math functions 2017-10-19 17:31:40 +02:00
Romain Goyet
f34146be5e [poincare] Comment-out unused code 2017-10-19 17:31:40 +02:00
Romain Goyet
e5010b1621 Work around a GCC bug 2017-10-19 17:31:40 +02:00
Romain Goyet
1636d45588 Uniformize toolchain usage 2017-10-19 17:31:40 +02:00
Romain Goyet
2287cfc8b4 [Travis] Don't enforce a compiler 2017-10-19 17:31:40 +02: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
Romain Goyet
7d6bf1649b Avoid using clang by default 2017-10-19 17:31:40 +02:00
Émilie Feral
0b79be058f [poincare] Tangent::immediateSimplify()
Change-Id: I9ecdf64640693679c9e797f1d7013886a23a3b9d
2017-10-16 13:05:59 +02:00
Émilie Feral
a9dacd18f3 [poincare] Merger Trigonometry and trigonometric function
Change-Id: Idff99ad2db109f7085a56daf288831eb2a69aa8b
2017-10-16 10:21:12 +02:00
Émilie Feral
591ab0550d [poincare] Fix bug in trigonometry
Change-Id: I02c6ab9057d9e50ef6a355c86a890c9f0f684a16
2017-10-16 10:13:06 +02:00
Émilie Feral
9e76e62fe1 [poincare] Change name: tringonometrical->trigonometric
Change-Id: I4ba2e8a157808f10b5ae9d17ff12c843e5cc2906
2017-10-16 10:12:35 +02:00
Damien Nicolet
1bf5386f8a Corrects wrong RCC QSPIEN register definition 2017-10-16 09:21:10 +02:00
Émilie Feral
b8751b2b50 [poincare] Factorize trigonometrical simplify
Change-Id: I324e1973b70d7cd20dd00f24a43c8659c1c55af9
2017-10-13 18:27:10 +02:00
Émilie Feral
ad9cf7d322 [poincare] Fix bug in expression
Change-Id: Ia91399388a00cbbec32b7b0a3e2859e68ee2fe42
2017-10-13 18:26:45 +02:00
Jacob Young
17ac54cad5 Use cmath in c++ files. 2017-10-13 18:08:15 +02:00
Jacob Young
f2b7f92d71 Merge in upstream openbsd commit yu8HfTXRTrrv8b2W which allows isnanf, isnand, isinff, and isinfd to be deleted. 2017-10-13 18:08:15 +02:00
Jacob Young
da1e66e798 Fix #115 by fixing the math.h and cmath includes. 2017-10-13 18:08:15 +02:00
Émilie Feral
0a4845abde [poincare] Sine::immediateSimplify
Change-Id: Iab48a0e939386861c3ede2507dc48998e2bc6e9d
2017-10-13 17:45:05 +02:00
Émilie Feral
31407ac2ba [poincare] Complete trigonometrical table
Change-Id: I2a7bc541668afa3a131c25b6ce79ad3eb6a6a5fc
2017-10-13 17:42:39 +02:00
Émilie Feral
0743e91ed5 [poincare] Create a header for SimplificationRoot
Change-Id: I83f23c0b7b036e193510eb2c31943e9b6c32a2bc
2017-10-13 17:42:21 +02:00
Émilie Feral
35ebf781df [poincare] Fix bug in Cosine::immediateSimplify
Change-Id: Ib3fe9c99de1d8e83c7bebd7a28d546b275c0ceba
2017-10-13 17:41:04 +02:00
Émilie Feral
014dae3a56 [poincare] cos(-R(2)) = cos(R(2))
Change-Id: Ic8da08564abfddfe0ef153b82f0e85460996305a
2017-10-13 15:28:43 +02:00
Émilie Feral
b83cfabb25 [poincare] TurnIntoPositive returns a simplified expression
Change-Id: Ia5c01e7cc1e8f1be4f26ad477c55c4e291aad789
2017-10-13 15:27:50 +02:00
Émilie Feral
47ce822c42 [poincare] Improve Cosine::immediateSimplify
Change-Id: Icc6329625895c9b33cf8342ab4cdea4ee748d5d4
2017-10-13 14:50:32 +02:00
Émilie Feral
1b4a553f1b [poincare] First version of Cosine::immediateSimplify
Change-Id: I4a87e55f0a9f317fabf9c6895dc4a06b3e535bc3
2017-10-13 11:31:20 +02:00
Émilie Feral
0c1af71950 [poincare] Homogenize beautify and simplify implementation
Change-Id: Id8fabad0534c7ab075738fd7ff2e99d4f6e6bb06
2017-10-13 11:30:11 +02:00
Émilie Feral
28f474a68e [poincare] Fix bug in Addition::immediateSimplify
Change-Id: Ib08d761e94251439c2682063ee9f369b7267db34
2017-10-13 11:29:46 +02:00
Émilie Feral
d4fa68631a [poincare] Add parenthesis in Beautify for power of addition, power of
multiplication and multiplication of addition

Change-Id: I8112647c82d90e58b5dbe6955dabc8558f2bd64c
2017-10-12 16:04:01 +02:00