Émilie Feral
bd26c499e4
[poincare] In Multiplication::addMissingFactors: fix bug due to creating
...
a multiplication nested inside a multiplication without reducing it
Change-Id: I2e8174a3714e90e6ecc4edbed0e17e434921e269
2017-12-01 11:54:00 +01:00
Émilie Feral
abb1e04b13
[poincare] Fix bug: when looking for the common multiple, the factor can
...
have the same base without being a power!
Change-Id: I8a3af89165ed2117a39d19968138fb3a1e1169f0
2017-12-01 11:54:00 +01:00
Émilie Feral
95ce07dfc7
[poincare] In Integer::approximate, exclude special case 0 first to
...
avoid breaking assertions
Change-Id: I7dea2e05a485a581251b43be1814f00615f17594
2017-12-01 11:54:00 +01:00
Émilie Feral
b5cd6c76ca
[poincare] Increase the maximal length of decimal number before
...
switching to scientific printing
Change-Id: I31c404cc7f89babd279689a48c1adcb33a46da7a
2017-12-01 11:53:59 +01:00
Émilie Feral
3dbe526a92
[apps] In settings, add a row in display mode menu to choose the number
...
of significant digits
Change-Id: I5ff19740e0ee7258a6d77054df547f916d9b04c4
2017-12-01 11:53:59 +01:00
Émilie Feral
164b6bb43e
[poincare] Add a preference: numberOfSignificantDigits when layouting
...
complex
Change-Id: I2195c54c6cde43c42ccc0d180870fff0928aa270
2017-12-01 11:53:59 +01:00
Émilie Feral
8cfeff5fbe
[kandinsky] Change Large police
...
Change-Id: Ic3063610eaf2ed73aa7e0e6f7edcb5ad3946ac22
2017-12-01 11:53:59 +01:00
Émilie Feral
3f0328f5b5
Add assertions for dangerous bit shift that could trigger undefined
...
behaviour
Change-Id: I051ed229d407eafcae1ea4b5fc745176a751e036
2017-12-01 11:53:55 +01:00
Émilie Feral
da2829b969
[poincare] Clean Integer constructor
...
Change-Id: I1ced5587246507d3cd813b0c23af64f3459c6d0c
2017-11-30 10:48:38 +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
11ab2a871f
[poincare] Fix bug in casting Integer to float/double
...
Change-Id: Ibfc0be39dd6e90e99e226b40f4171c01f54ddae1
2017-11-30 10:35:39 +01:00
Émilie Feral
f962f7ef6d
[poincare] Remove ambiguity on casting char in int (different behaviours
...
for different compilers..)
Change-Id: I51630e104311d2038b140a9877ede893dddfefeb
2017-11-29 16:53:49 +01:00
Émilie Feral
e77a66c7d5
[poincare] Fix bug in addMissingFactor (a shallow reduce missing)
...
Change-Id: I7200f86f9baadd3f7e7dce384aa66d30aabe654f
2017-11-29 16:53:16 +01:00
Émilie Feral
40da35f17c
[poincare] Clean and sort tests
...
Change-Id: Ia6a66f5d6e568731ba4127c94a073f7fd62bc26a
2017-11-29 09:44:35 +01:00
Émilie Feral
17a643a5a5
[poincare] WirteToText always use MultiplicationSign and Layouts use
...
MiddleDot
Change-Id: I4ffff6e6634deba376f083ef382e6bec0ff0883b
2017-11-28 17:42:06 +01:00
Émilie Feral
957cf30a0c
[Makefile] Be able to print expressions when building app
...
Change-Id: Iabc96d1e9534fd5377491f87325191af78310f32
2017-11-28 17:03:54 +01:00
Émilie Feral
01d456299f
[apps] Add comment
...
Change-Id: I53bdeb08625a2699408f563b0b3ed6c45744d01d
2017-11-28 17:03:33 +01:00
Émilie Feral
8874977a77
[poincare] Clean tests
...
Change-Id: Ib1a36aa1fff91e41ec92da18631bbe9c8c9a5f5f
2017-11-28 17:03:12 +01:00
Émilie Feral
97ab64296b
[poincare] clean warning
...
Change-Id: I4549b237391f46fcb4a28a33c497fb9013c9659c
2017-11-28 14:05:51 +01:00
Émilie Feral
65a87d77d6
[poincare] Cap prime factorizations: cap only prime factors
...
Change-Id: I6384ced8021d264cbf3a903e1574aeb0a22b7c3f
2017-11-28 14:05:46 +01:00
Émilie Feral
d886ce251e
[poincare] In Addition when reducing to same denominator:
...
do not deep reduce because the common denominator might not be a
multiplication anymore and make the numerator terms disappear. (ie 1/root(5,9)+3/root(25/9))
Change-Id: If72c73f47a36a97202ca3d1f7f44d40740f275b5
2017-11-28 11:47:01 +01:00
Émilie Feral
4e2c219179
[poincare] Correct mistake in comments
...
Change-Id: Id276f31a08c693aed47afceb9f75847e09d07919
2017-11-28 11:46:23 +01:00
Émilie Feral
8328342826
[poincare] In round, do not shallow reduce when it involves big
...
exponentiation
Change-Id: Ia2d0e854eab7bd9dea22679c820935d37ccdc7bd
2017-11-28 11:45:37 +01:00
Émilie Feral
355c39ff43
[poincare] In Power, change name:
...
RationalExponentInvolvesShouldNotBeReduced ->
RationalExponentShouldNotBeReduced
Change-Id: I98aa93543f1dcf6a88f331c367a8dd3ca68f2d53
2017-11-28 11:44:57 +01:00
Émilie Feral
ea1af0cfda
[poincare] Clean global context
...
Change-Id: I52eb6d6bdd4288700a6d22ca2835f6190b4bde82
2017-11-28 11:44:15 +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
51e360aa6f
[apps] In calculation, default XNT is x
...
Change-Id: I9bfef8920a4975b1162e2630aa4c4556537886b1
2017-11-28 11:42:21 +01:00
Léa Saviot
9d57d7f173
[code] Cleaned MenuController.
...
Change-Id: I499fcaf728a4f60557475b64e371a97e362b558d
2017-11-28 10:27:33 +01:00
Léa Saviot
2ce26f2625
[code] Fixed assertion bug in MenuController.
...
The assert should take into account the fact that there might not be any
script.
Change-Id: I68f0e5071ffd011fc5bb1dacc035d2127bdd8176
2017-11-28 10:27:12 +01:00
Émilie Feral
29587bf762
[poincare] Cap the integers that can be prime factorized
...
Change-Id: Iaf8cd747ac99a586438910bffc90de53e18b7640
2017-11-27 16:13:33 +01:00
Émilie Feral
eb4e2bcade
[poincare] Fix bug in logarithm split integer
...
Change-Id: I6b65443262e07e6ae3cc79eb7e5ea0c5caed1a06
2017-11-27 16:13:04 +01:00
Émilie Feral
2b9fe1b3f4
[poincare] In Power::shallowReduce: handle simple cases (0^x,x^0...) first to avoid
...
division by 0 afterwards
Change-Id: Ic88af4f88a4802e52593a566640104ac5276f7a2
2017-11-27 14:46:03 +01:00
Émilie Feral
11b2eaecce
[poincare] Clean: delete old code that was forgotten
...
Change-Id: If3d0d0ee794f6993ea1d05aa61ce42ad12f4cb79
2017-11-27 14:44:28 +01:00
Émilie Feral
60346032de
[poincare] In Multiplication: fix bug when factorizing sin^m*cos^n
...
Change-Id: Idebee5110e52a5d39e093dca265ba0ab88fae16a
2017-11-27 13:35:18 +01:00
Émilie Feral
bf2a26d90e
[apps] In calculation, do not accept expression whose corresponding
...
texts is too long
Change-Id: Ic96e5ed42e249d43e21241f8e1a7b1e873f3cad3
2017-11-27 12:07:35 +01:00
Émilie Feral
74a91ac214
[apps] In Calculation, the input text can be longer that the text
...
written by the user (omitted multiplication signs added, parenthesis
...)
Change-Id: Icc9861da847c7e65939ea6a9c337ffb3d1f12e61
2017-11-27 11:13:30 +01:00
Émilie Feral
900fdeaefa
[Poincare] Fix commit "Power: do not reduce too big negative power
...
(999^-999)"
Change-Id: I66073d1378b8c0e429547f4746697c28cc0a8ef8
2017-11-27 11:09:19 +01:00
Émilie Feral
ef97fac5ca
[poincare] Fix error in matrix dimension name
...
Change-Id: I6163cc4529cf9fc825dba208f2a20f4da4d142a1
2017-11-27 11:03:07 +01:00
Émilie Feral
36e8898178
[poincare] Consider symbols M* as matrix expressions
...
Change-Id: I0050fa16119b883c67a5098a215ddb5932ce0f2f
2017-11-27 11:03:06 +01:00
Émilie Feral
bd79b6c8a1
[poincare] inf -> undef
...
Change-Id: Ibf7ba53a462c1d57f0928f9edcfe4919587908ab
2017-11-27 11:03:02 +01:00
Émilie Feral
89485104b8
[apps] In calculation, fix history table row height
...
Change-Id: Ia0ee485b80d6f4db81f480d0e3e8f91b73c912a2
2017-11-24 17:13:21 +01:00
Émilie Feral
2c06727f36
[apps] Simplify expressions in sequence and function applications
...
Change-Id: I2708934d3b5c90e8692e50d939b3a13028b8615e
2017-11-24 14:39:06 +01:00
Émilie Feral
fda382cc0d
[poincare] Change name: evaluate->approximate
...
Change-Id: I649a7c640190713dcf063a4148decd6038e62796
2017-11-24 13:31:44 +01:00
Émilie Feral
76cbd2678d
[poincare] Change names: approximate->approximateToScalar
...
Change-Id: I701451b35909bb577dd729e0ea76a405b9543f23
2017-11-24 12:06:35 +01:00
Émilie Feral
53ea983307
[poincare] Read-me (first version)
...
Change-Id: I4f88b79eb992c1a08149b555f14955c127a862dd
2017-11-24 11:53:55 +01:00
Émilie Feral
e6762bb25c
[poincare] Merge Hierarchy into Expression class
...
Change-Id: Iea40f14e76dede947ffff1c63d53f6727d730e49
2017-11-24 11:53:39 +01:00
Émilie Feral
d8f269529b
[poincare] Add all previous evaluation tests
...
Change-Id: I7667c8c23d4097c33e3abef696f20d9f460b5068
2017-11-24 10:11:29 +01:00
Émilie Feral
b6d261c2b2
[poincare] Factorial: simplification order was needlessly (?)
...
complicated.
Change-Id: Id0987b734f63bb6306d5c36d90573a770f541728
2017-11-24 09:39:05 +01:00
Émilie Feral
914e9e8806
[poincare] In Integral evalutation, decrease the maximal number of
...
iteration (for time complexity)
Change-Id: Ie2af42071e128818e5f144c82720d36cac62c51b
2017-11-24 09:36:54 +01:00