Commit Graph

1406 Commits

Author SHA1 Message Date
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
Romain Goyet
34b03a0dc0 [poincare] Small cleanups 2017-09-24 17:38:18 +02:00
Romain Goyet
3d7f70c6bb [poincare] Get rid of NAryOperation 2017-09-24 09:22:09 +02:00
Romain Goyet
37557d6332 [poincare] Add Expression::setParent when modifying the tree 2017-09-24 09:20:37 +02:00
Romain Goyet
acbcbbfe6d [poincare] Hierarchy::operands() is a "const Expression * const *" 2017-09-23 15:40:29 +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
41521388e5 [poincare] Remove header of class function
Change-Id: I2aaa523ddc0fa90de2242f957893cf3da8e7779e
2017-09-22 14:22:32 +02:00
Émilie Feral
2b1bd5c191 [poincare] In context: clean setExpressionForSymbol
Change-Id: I13f51a6c84537be43de3b78de68e77fade502344
2017-09-22 13:21:55 +02:00
Romain Goyet
2e0caf5374 [poincare] Add IntegerAdditionTransform 2017-09-22 12:17:11 +02:00
Romain Goyet
0c140cc4c7 [poincare] Hiearchy modification 2017-09-22 11:42:14 +02:00
Émilie Feral
8aa0e40d46 [poincare] First version simplify
Change-Id: I7ff4396f42bb980df2780dfc59bfb8b22205abc8
2017-09-21 13:56:38 +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
Jacob Young
d5320280aa Display floor and ceiling symbols. 2017-09-20 10:12:05 +02:00
EmilieNumworks
7f71f5246e Merge pull request #55 from adriweb/fix/const-warning
[poincare] remove useless const qualifier on return type
2017-09-01 01:43:42 -07:00
Adrien Bertrand
55dd5b4486 [poincare] remove useless const qualifier on return type
This generated a lot of warnings in -Wextra:
'const' type qualifier on return type has no effect [-Wignored-qualifiers]
2017-09-01 00:48:28 +02:00
Jacob Young
303120c7e2 Consistently use ordering rows, cols everywhere.
Changing the order of logical operators, etc is just to make searching for actual bugs easier.
2017-08-31 17:41:59 -04:00
Émilie Feral
43401829cb [poincare] In complex, the lengthest numerical value that can be
converted to text has changed from -1.999999e^-38 to -1.999999e-308

Change-Id: Ic3232dc14cae1b4e5df83a50cc2f651ef9a634ee
2017-08-24 14:05:24 +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
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
72d7ba2e34 [poincare] In power, cap the power index of matrix and enable to stop
computing

Change-Id: I98e6512d1e87a152eed4342055a1653c743eb947
2017-06-08 18:30:39 +02:00
Émilie Feral
d07ba2dc7c [apps][poincare] Add matrix variables M0-M9
Change-Id: I09d82633ac9ffafc616c2be1e16575f2a5b730f7
2017-06-08 18:29:33 +02:00
Émilie Feral
25383b73e5 [poincare] Add parser tests
Change-Id: I2009700628b29be980792e6a31cd374cfdc74eaf
2017-06-01 10:35:36 +02:00
Émilie Feral
b58cfee5a1 [poincare] Clean matrix power
Change-Id: I7ff27b45f240e0f6c89fb5bf79f21126475265e4
2017-05-31 12:05:59 +02:00
Émilie Feral
962e047f54 [poincare] Rule of 5 in Poincare
Change-Id: I2980927d19781b969dabd22731680190a59e4334
2017-05-09 16:23:29 +02:00
Émilie Feral
0796892f0a [poincare] Fix bugs in sequence
Change-Id: I04a6cc0fa381c444a116c5d601a2fdfc4c6b8710
2017-05-03 14:22:52 +02:00
Émilie Feral
bea3a97786 [poincare] Interrupt too long event when back key is down
Change-Id: I668efec0aefdd5d3baf7973942d4f44165a05f07
2017-05-03 14:22:50 +02:00
Émilie Feral
b9b06e400b [poincare] Factorize product and sum and cap their evaluation time
Change-Id: Iea355d2239bd2f7e332fe42591119ad573d93286
2017-05-03 10:22:01 +02:00
Émilie Feral
784c27b8c8 [apps] Memory leak
Change-Id: Iffc90ef26a7e5aa500d47c77140b91e62cf6dbdc
2017-04-25 13:52:29 +02:00
Émilie Feral
f3da453fc0 [poincare] Implement factorial
Change-Id: I2344d12fdc9084db84247a096110efe0e909e32a
2017-04-18 10:28:03 +02:00
Émilie Feral
3f246d8b72 [poincare] Cheat on trigonometric functions
Change-Id: If49f6e25403dcf09736e1cd3e9c5f25bba140af3
2017-04-12 10:33:31 +02:00
Émilie Feral
28b7bca7fc [poincare] Fix bug
Change-Id: I2d860f699e91e91b8ac7c7cbe92ca492736d60e2
2017-03-29 18:36:46 +02:00
Émilie Feral
2c8383c95d [poincare] Pop up a syntax error for function with the wrong number of
arguments

Change-Id: I8be6838c1d94676a2b579a353c3d36011e6edba1
2017-03-29 18:36:45 +02:00
Émilie Feral
6d8d105d7e [escher][apps] Clean and fix bug in text field
function application)

Change-Id: I5d425ea7752a054ea6b05735b12442c4429f13b4
2017-03-29 15:04:37 +02:00
Émilie Feral
fa2ee9e624 [poincare] Never return nullptr when creating a expression to avoid
nullptr dereference

Change-Id: Ie7976a8ee86c82283ebcbffc28fe902ddfb7a952
2017-03-29 11:35:30 +02:00
Émilie Feral
0d34320c8a [poincare] Fix bug
Change-Id: I49b0ac9d71a1d541f94030de275a5e6498823f4f
2017-03-28 14:49:28 +02:00
Émilie Feral
9636d2decb [poincare] Display an error when parsing a function with the wrong
number of parameters

Change-Id: I1d0b88dcfa1e61581e425caa2a335b567a1d92c8
2017-03-20 14:55:59 +01:00
Émilie Feral
91385765d8 [poincare] Parse "3->A" (sto)
Change-Id: Idd8545cfcb91cebc7f95e2425db795e8105da14b
2017-03-16 15:12:10 +01:00
Émilie Feral
6b98af5287 [apps][poincare] Add a submenu to toolbox about fluctuation intervals
Change-Id: Iae352e67abe4e70a75a4083bc669ea2541618457
2017-03-16 15:12:10 +01:00
Émilie Feral
db4dab9731 [poincare] Parse acosh, asinh, atanh
Change-Id: I4c0f965e9bb1738c017964b8664c7867e41c5339
2017-03-16 15:12:10 +01:00
Émilie Feral
ce66a582b6 [poincare] parse acos, asin, atan
Change-Id: I1f6c3566315cbe21b5a46c79f3e9dee5123432bb
2017-03-16 15:12:10 +01:00
Émilie Feral
8e5e5d97ca [poincare] Parse approximation functions (floor, ceil, frac, round)
Change-Id: I54fed14f1effe2cf793ced0111db781c0c3ab06c
2017-03-16 15:12:09 +01:00
Émilie Feral
18265e2111 [poincare] Parse trace(matrix) and dim(matrix)
Change-Id: I8de073595d23c78bbea440d485d2d0d0c576fe13
2017-03-16 15:12:09 +01:00
Émilie Feral
b360ed2986 [poincare] parse transpose(matrix)
Change-Id: Iaf5585312b175a22196c22ea7f50f38a174b3c5a
2017-03-16 15:12:09 +01:00