Émilie Feral
c1a65654d7
[poincare] Clean Macro in integer
...
Change-Id: I0e9ebe49921269b3812e9e7a1f496465e52738aa
2017-09-25 15:04:44 +02:00
Émilie Feral
0979a26685
[poincare] Change checksum to identifier
...
Change-Id: I9e132ea5d731f9f3092a399c0b7fd883e3c22abd
2017-09-25 14:55:30 +02:00
Émilie Feral
ceeb43cd5f
[poincare] Change comparesTo + virtual nodeCompareTo -> virtual compareTo
...
Change-Id: Ie54b3652ad1d5845f084b4b49ca0eb96198b853a
2017-09-25 14:54:12 +02:00
Romain Goyet
b064fabad9
[poincare] Clean the Integer class
...
Change-Id: I010f571b521a5c45f6131040d396dc0241517728
2017-09-25 14:24:50 +02:00
Romain Goyet
34c51ed239
[poincare] Clean Expression::isCommutative
2017-09-25 14:06:45 +02:00
Émilie Feral
590f15da65
[poincare] Add implementation of type and value selector
...
Change-Id: I79cf70e40a3b7415bdb54123cc1b3a7e03273504
2017-09-25 10:31:57 +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
Émilie Feral
d3a2109b5f
[poincare] Change binary_operation -> n_ary_operation and add an order
...
on expressions
Change-Id: Ia881728ef965eb1f7ff9449d14253ea347fdeed7
2017-09-21 11:18:03 +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
8035efb52f
[poincare] When an integer is too big to be approximate by a float,
...
return INFINITY
Change-Id: I6be4847b6ac5ebd8974005b1ab16625670301562
2017-04-06 11:11:34 +02:00
Émilie Feral
4cc200cab3
[poincare] Do no overflow stack by trying to display very very long
...
integers
Change-Id: I21ce03bb65b70e1b6c5771ef8bdb02b78aa4cfa5
2017-04-06 10:39:29 +02: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
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
69e46f4958
[poincare] Namespace Poincare
...
Change-Id: I51a84fa7978ba16f128cfe1d32c390970f2037e8
2017-02-13 17:15:06 +01:00
Émilie Feral
676bd46f33
[poincare] Expand numbers to complex numbers
...
Change-Id: I2e7cf5240e184da45b656ee4f121ad76aabfd1c7
2017-02-13 17:15:03 +01:00
Émilie Feral
42e4cf408d
[poincare] Enbale to evaluate expression in degrees or radian
...
Change-Id: I8b08e7fa93431817559a594a1ea03d4414f0c830
2017-02-06 16:30:48 +01:00
Émilie Feral
e951140298
[poincare] Change method createLayout() to createLayout(DisplayMode)
...
Change-Id: Ifb1027d38b53a50a0ada80e11b68d44e72ac9099
2017-01-31 10:36:13 +01:00
Émilie Feral
93d272486f
Clean warnings
...
Change-Id: I79a3a97c5c118c9d6e1436e51b45cb51fee3c21f
2017-01-30 15:30:58 +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
a07a59efe9
[poincare] Factorise the method evaluate
...
Change-Id: Ief252568e8d232fc4606e8c86b5e3f9b4c076955
2016-12-09 11:01:39 +01:00
Émilie Feral
357f971120
[poincare] Change name: createEvaluation -> evaluate
...
Change-Id: I8f241541af0435c6ab4f7ba1f561f880c4e95ac0
2016-12-08 17:10:36 +01:00
Émilie Feral
0ce0995e0c
[poincare] add a method createEvaluation in all expressions
...
Change-Id: I72e78afcae2a931376108859a5615c227d364d74
2016-12-08 15:21:52 +01:00
Émilie Feral
720a20a9cb
[poincare] handle case 0 in integer layout
...
Change-Id: I178a543a342a38f80eb74341118c13d2e189f858
2016-11-04 11:13:47 +01:00
Romain Goyet
2e3b578eff
[Poincare] Update for C++ Kandinsky
...
Change-Id: Ib0d44841245a290c0395c43b2cde4c7ea69c17ca
2016-08-19 10:34:59 +02:00
Felix Raimundo
6f5cc68b75
Fix Integer approximation for 0.
...
Change-Id: Ib4bab6f4f776342bf6311d1e6f8b6d245d9a048a
2016-04-22 16:52:44 +02:00
Felix Raimundo
77f057de82
Add the const qualifier to Expression methods
...
Change-Id: Ic05828a91c89cb391e6d7c1d4a5220fad4aea5e7
2016-04-18 18:48:56 +02:00
Felix Raimundo
47f361a667
Make the addition public.
...
Change-Id: I9b277f0a959f36453215de7dbb98b8f8dad69544
2016-04-18 18:48:56 +02:00
Felix Raimundo
7a7df647f3
Fix the printing of integers.
...
Because yes, multiples of 10 would not print...
Change-Id: Id58305086d499eb091ea5612fedcc5ec6f25c415
2016-04-07 12:44:05 +02:00
Romain Goyet
de2f83e8bd
Poincare: Put the AST printing in its own file
...
Change-Id: I1793fa2057098f31a549faf6bf39e64c333b5b06
2016-04-01 15:02:31 +02:00
Felix Raimundo
ed2c4cfb59
First version of the simplifications.
...
Change-Id: Idbddb92b6bd098d6b862f5fc4abd741948e15194
2016-04-01 11:32:11 +02:00
Felix Raimundo
ebf03464fa
Fix warnings.
...
compareing an int to an unsigned value.
Change-Id: I718d83b594a0c7e05aacfde35251df0be66de687
2016-03-25 14:35:00 +01:00
Felix Raimundo
3710103f40
Change the layout creation.
...
The father now sets itself as teh father of its children.
ExpressionLayout do not know anything about expressions now.
Change-Id: I28954c78f3102eec056ebbc3c52ccd862a5ab8fd
2016-03-25 14:35:00 +01:00
Romain Goyet
b79e7483f4
Poincare: Adding SimplifyAdditionMerge
...
Change-Id: I6f922cce8178d5313a46d611e7ab166c52282127
2016-03-24 17:47:04 +01:00
Romain Goyet
0d7813dc7b
Poincare: Expressions can now be cloned
...
Change-Id: I5a291c56dd031ec5e7aa6fbfe09823807f1b0e3c
2016-03-24 13:35:16 +01:00
Romain Goyet
dfdaa54928
Poincare: Clean the Expression::Type
...
Change-Id: I3809a8b1b040314466554866555fb634c35156a5
2016-03-24 10:19:04 +01:00
Romain Goyet
d3b0841af6
Poincare: Add a simplifier
...
Change-Id: Iac53c9b7dda5cb284fe750bb84c92ce5d1fba497
2016-03-23 17:24:11 +01:00
Felix Raimundo
d84e139954
Remove some warnings.
...
Change-Id: I5a856edc3ebc7ccb352865d62b2b12cdfc8426ca
2016-03-22 18:39:59 +01:00
Felix Raimundo
5f86659bd3
Remove some dead code.
...
Change-Id: I62c0effa23db161f498b1a133ee6ab80e8e7d481
2016-03-22 18:39:59 +01:00
Felix Raimundo
b33eb99067
Adds the power and parentheses to the parser.
...
Also removes some dead code and adds buttons in order to have parentehses.
Change-Id: Iaf6d678f765bb6a1c3405818738c51661aa43e12
2016-03-18 13:00:17 +01:00
Romain Goyet
15d91052f2
[Poincare] Handle symbol/context
2015-11-18 22:31:21 +01:00
Romain Goyet
0a44218cdf
[poincare] use KDPointZero
2015-09-22 16:39:11 +02:00
Romain Goyet
010777db09
[poincare] use native_int_t when appropriate
2015-09-22 16:17:43 +02: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