Commit Graph

51 Commits

Author SHA1 Message Date
Émilie Feral
bd79b6c8a1 [poincare] inf -> undef
Change-Id: Ibf7ba53a462c1d57f0928f9edcfe4919587908ab
2017-11-27 11:03:02 +01:00
Émilie Feral
fda382cc0d [poincare] Change name: evaluate->approximate
Change-Id: I649a7c640190713dcf063a4148decd6038e62796
2017-11-24 13:31:44 +01:00
Émilie Feral
920a12027f [poincare] In complex writeToText, change '*' to MiddleDot
Change-Id: If5e56f5c1a96ce0d0d5136272086dc78887a1cec
2017-11-23 10:01:43 +01:00
Émilie Feral
091a0ff10e [poincare] Fix bug: print 0 in polar mode should print 0 and not undef
Change-Id: Ic38168a2c80bc97fa539963e6c6da2f408ec5659
2017-11-22 11:07:47 +01:00
Romain Goyet
52bdf4a41f Merge branch 'cas_with_app_copy' into python_console 2017-11-21 18:44:38 +01:00
Émilie Feral
53c66baa16 [poincare] Re-enable matrix in simplified expression-> handle matrix in
evaluate

Change-Id: I455845398f0799b9e25fd192ada7478c872ab892
2017-11-17 13:34:46 +01:00
Émilie Feral
d5fc8d139f [poincare] First version of Simplification with matrix (no tests yet!)
Change-Id: I28ad4750ad31995836b23725f7d715669fcb7ae2
2017-11-10 15:22:33 +01:00
Jacob Young
17ac54cad5 Use cmath in c++ files. 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
31ed76d6e7 [poincare] Handle all edge cases in polar layout (inf, nan)
Change-Id: I10253bee9b581067301bb12302f7ee58a7cda89d
2017-10-04 10:32:54 +02:00
Émilie Feral
1b032955c1 [poincare] Fix layout of undef in polar
Change-Id: Ibe819cb38744ea295e6fabe2885b4a2a51d66497
2017-10-04 10:32:54 +02:00
Romain Goyet
34c51ed239 [poincare] Clean Expression::isCommutative 2017-09-25 14:06:45 +02:00
Émilie Feral
a5ca0f93bf [poincare] Throw a bison error when functions have wrong number of
arguments

Change-Id: I33f0a9b7cad3b1fde2df25ecfdc568187b79f248
2017-09-22 14:23:15 +02:00
Émilie Feral
23629b0939 [poincare] Restructuration of poincare (no duplication of children
storage)

Change-Id: Ia10c3cc83e10d238750c6954b7c093d26b762c94
2017-09-21 13:49:06 +02:00
Jacob Young
7e2cc375d2 Fix potential overflow in complex radius calculation. 2017-09-20 12:04:35 +02:00
Jacob Young
0904313624 Fix #100. 2017-09-06 23:38:04 -04:00
Émilie Feral
88aeabb8a1 [apps][ion] Add <math.h> header to ensure building with all compilaters
[ion] In makefile, force the PATCH_LEVEL to be length 7

Change-Id: I67a7bd873a247dd42d0d1e845912cc8b71330d9e
2017-08-24 14:05:19 +02:00
Émilie Feral
cdee87527e [poincare] Cheat on evaluation of power, cosine and sine
Change-Id: Iebe4433b6bde35b92df78986f3360aa3a936024a
2017-08-17 09:31:59 +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
f73ddcd08f [poincare] Evaluation return numerical matrix
Change-Id: I58dbc93ad22a086580a77318b2524db9c70e47d2
2017-08-03 13:47:11 +02:00
Émilie Feral
34d461d6d7 [poincare] Fix bug in convert float to text
Change-Id: Ieeea7da976ac972412e90b29fc03d240c4c0a754
2017-06-27 15:54:50 +02:00
Émilie Feral
2efe8e724a [poincare] Fix bug in converting float to text
Change-Id: Ide8e34695caa291c2972337cf6e06f06e3dbef6a
2017-06-27 14:34:06 +02:00
Émilie Feral
b64a4110af Change name: Algebric -> Cartesian
Change-Id: I7855e9df1d401f9a3c0e95c933078852594ff309
2017-06-21 13:11:08 +02:00
Émilie Feral
9a8c65bab5 [poincare] Fix bug in complex layout
Change-Id: I481e3bfdd6432c38937a2a299d5af26fa50b2833
2017-06-21 12:02:11 +02:00
Émilie Feral
dd00d89b64 [poincare] Resolve bug in complex write to text
Change-Id: Ie5bc2cf4def9b8d9b9712e4ad6a5b3deee2d5abd
2017-06-08 18:30:45 +02:00
Émilie Feral
a644a9274b [poincare] Fix bug in complex write to text
Change-Id: I889a02fae1ae603237aec877804fe9f4aa6ebe15
2017-06-08 18:30:45 +02:00
Émilie Feral
d13f989300 [poincare] Fix bug
Change-Id: I6d6201fe374ffdeeef365eb2d783c6958742e672
2017-05-29 10:40:37 +02:00
Émilie Feral
3c3981e0e4 [poincare] Fix bug in convert float to text
Change-Id: I2b672cbb356a60a00a9fd11be8ed3787d2387c83
2017-05-05 11:08:14 +02:00
Romain Goyet
419df39993 [poincare] Add some extra assertions in Complex::convertFloatToText
Change-Id: Ie779eb4ee9bc4316c6718820795c5a651f30d058
2017-05-05 09:07:20 +01:00
Romain Goyet
081f2ce40a Remove warnings
Change-Id: Ibe5c0a0b937cd595983317a8c08ff38ffee5977d
2017-04-10 16:01:35 +02:00
Émilie Feral
32252b0d25 [poincare] In convert float to text, avoid getting infinite values by
using log.

Change-Id: If4d66adcf5c9668fef8b733afdecebae8cd6d259
2017-03-29 18:36:46 +02:00
Émilie Feral
b140c768bb [poincare] Fix bug in convert float to text
Change-Id: Iee47a093ffc6c3829183d16cf1224abf876bc087
2017-03-29 18:36:46 +02:00
Émilie Feral
86cbe340fb [poincare] Parse undef and inf
Change-Id: Ia3c67d24636893991953ee3e2cda0ac04d334b08
2017-03-29 18:36:45 +02:00
Émilie Feral
8c175af3c5 [poincare] Replace NaN by undef and Inf by inf in convertFloatToText
Change-Id: Ic957b387c78fdd7b94d5effb4060ace7fb118776
2017-03-29 18:36:45 +02:00
Émilie Feral
4f089b2cf8 [apps] Avoid infinite value in editable table
Change-Id: I8ebbf99c244e7b7008c788aec8eed71b9ae20580
2017-03-28 14:49:22 +02:00
Émilie Feral
e13919cca7 [poincare] Use OpenBSD function for cosh, sinh, tanh and arccosh,
arcsinh and arctanh

Change-Id: I64f6718ebdd042512ce9b9db78dffa3c943471ff
2017-03-16 17:35:36 +01:00
Émilie Feral
1be226d7a4 [poincare] Improve scientific display mode
Change-Id: Ia86ea6561bc262c011835fbf15362d460652ec85
2017-03-16 15:12:10 +01:00
Émilie Feral
ff4c3f1948 [poincare] parse and layout conj() function
Change-Id: I34636b43dffd746ac3fc8c76449e354898992f2d
2017-03-16 15:12:08 +01:00
Émilie Feral
d543fe3044 [poincare] Simplify abolute value
Change-Id: I13beff4a74820432e0b759209826ba7d62fd53b4
2017-03-08 15:47:21 +01:00
Émilie Feral
c8c2e9c723 [poincare] In complex, implement complex format II
Change-Id: I5a2a8adcaa46f5760fc7f996935f1a4d0a19fa1c
2017-03-08 10:33:43 +01:00
Émilie Feral
a019289a6a [poincare] Implement complex format
Change-Id: I98731b356cce0ae3107fd0a660697241210692ae
2017-03-07 15:53:05 +01:00
Émilie Feral
dc7a629dfa [poincare] Replace complex constructors by named constructors
Change-Id: I6aad82edfb1bd243c4537a48888655608b90eeb5
2017-02-20 09:39:25 +01:00
Émilie Feral
7cbfd37925 [poincare] Clean complex: replace m_numberOfSignificantDigits by
k_numberOfSignificantDigits

Change-Id: I0398542beea3e83339131a7333f7bc0726331466
2017-02-20 09:39:25 +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
b79bcfb9dc [poincare] Change name DisplayMode -> FloatDisplayMode
Change-Id: I7754b4a5ac96c3f3564749749b49130ddf357e20
2017-02-17 16:35:07 +01:00
Émilie Feral
1f751589b9 [Kandinsky] In font, for the i complex, use the i cyrillic instead of
iota

Change-Id: I746e1060f1437fe090a2dee533c3bbec24bda7d4
2017-02-17 16:35:06 +01:00
Émilie Feral
69e46f4958 [poincare] Namespace Poincare
Change-Id: I51a84fa7978ba16f128cfe1d32c390970f2037e8
2017-02-13 17:15:06 +01:00
Émilie Feral
b1735da380 [poincare] Replace E by small capital E to respresent 10^
Change-Id: I350958f0e0c87e36ad5b01af91e11f403536b22d
2017-02-13 17:15:06 +01:00
Émilie Feral
6f846636e6 [poincare] Implement complex power
Change-Id: I7e1344d298209e243b53c727d95dfadf801b1a7f
2017-02-13 17:15:04 +01:00