Felix Raimundo
ed2c4cfb59
First version of the simplifications.
...
Change-Id: Idbddb92b6bd098d6b862f5fc4abd741948e15194
2016-04-01 11:32:11 +02:00
Romain Goyet
6232079f02
Poincare: Add a Simplification rule generator
...
Change-Id: I4a0971405164c40c5ca3f7e1a0406f01d83d67d8
2016-03-31 18:47:18 +02:00
Felix Raimundo
7ddd1fc112
WIP - Remove dead code / files.
...
Change-Id: I13a1a871b6ab746377c6b0e79ee887fb6c0e0e6d
2016-03-30 11:26:15 +02:00
Felix Raimundo
5e01cfe421
Add baseline for pretty printing.
...
Change-Id: I77e76cb4b6191992137dd83f366006115ae65661
2016-03-29 13:41:37 +02:00
Felix Raimundo
1742146812
Fix typo in the functions printing.
...
Change-Id: Ifb7fa712c034fc24e73a4b2e4062c1864b1c7d25
2016-03-29 13:41:36 +02:00
Felix Raimundo
418d081f6e
Add the trig menu.
...
Change-Id: Ifbe2518cb3a089dace82d56031987fbc7a2e6181
2016-03-29 13:41:36 +02:00
Felix Raimundo
e0184ba975
Add a flag for inversing the intensity in char drawings.
...
Change-Id: Ibc22dd8aeaf95ef0aa49d2f9aa8867c47324ce80
2016-03-29 13:41:36 +02:00
Romain Goyet
c56c506b19
Poincare: Handle unknown symbols in ugly debug hack
...
Change-Id: I7faddb8f6898987f37cfe632a55b698303868ab7
2016-03-29 12:53:29 +02:00
Romain Goyet
ab531f357b
Poincare: Collect some simplification functions
...
Change-Id: I5d0378ef7887317059114c6cf749a136607d30ad
2016-03-29 12:50:12 +02:00
Romain Goyet
e534b659c1
Poincare: Add hand-generated Simplifications
...
This will be generated by a compiler
Change-Id: I5ae606417ecd4e86a61c38be65fc6a4f44e9c3d5
2016-03-29 12:49:30 +02:00
Romain Goyet
307f94b50b
Merge branch 'master' of ssh://git.numworks.com:29418/CalcOS
...
Change-Id: I3e9fb6c960d26eebbfa4a28a4e0dfa0a2153e9f4
2016-03-28 15:53:43 +02:00
Romain Goyet
ad807282a3
Poincare: Nicer naming
...
Change-Id: Ic0677c10980b2e883586047718db9998608a2576
2016-03-27 21:44:40 +02:00
Romain Goyet
60b648a1cc
Poincare: Conditional use of the new simplification architecture
...
Change-Id: I2d6c71eb919758e02547326795ee280c8551cf17
2016-03-27 12:51:29 +02:00
Romain Goyet
eae34b3221
Poincare: ExpressionBuilder can now take a function pointer
...
Change-Id: Ie7a704c7d0b0dd9e7117bfbcc539b5d093843669
2016-03-27 12:50:06 +02:00
Romain Goyet
ef3b8c6f24
Poincare: Fix the ExpressionBuilder and ExpressionSelector child method
...
Change-Id: I07de75272968b2d26341074837bfb769a875608d
2016-03-26 23:59:27 +01:00
Romain Goyet
a8feaefe82
Poincare: Add a Simplification class
...
Change-Id: Ide99e912262111722e11ae82dbc7eedb591ba14c
2016-03-26 21:04:04 +01:00
Romain Goyet
e8b7a9bd83
Poincare: Add an ExpressionBuilder class
...
Change-Id: I5865b712cfe1f8e1cd2e29d0d2b50be8182985b8
2016-03-26 18:47:08 +01:00
Romain Goyet
f81239fdb8
Poincare: Add an ExpressionSelector
...
Change-Id: I1ed0e2f3042f948d81d79b7b8ada00a3e838322b
2016-03-26 18:46:27 +01: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
bdb4aaace3
Merge branch 'master' of ssh://git.numworks.com:29418/CalcOS
...
Change-Id: Ic13da71a80ab823ee0b11f550ee359c4032edc36
2016-03-25 11:55:09 +01:00
Romain Goyet
c3b1089964
Transform SimplifyAdditionMerge into SimplifyCommutativeMerge
...
Change-Id: Iec477f6de5d51479370916336699a4ac91680ab4
2016-03-25 11:53:42 +01:00
Félix Raimundo
2744d942e1
Merge changes I44c1bed2,Ibcf1dd17,Id02daf67
...
* changes:
Use proper english name for sine.
Add parsing test for trigo functions.
Horizontal layout finished.
2016-03-25 11:09:20 +01:00
Félix Raimundo
d7d00fefd7
Merge changes I6b4d6be5,Ie87dc145,I87e12b9c,I5d37ed0a,Ia52f38da
...
* changes:
Update functions to use the clone interface.
Horizontal layout
Remove call to get_char to fix tests.
Rename text_input to utils, add a util in it.
Add the Function and trig functions classes and layout.
2016-03-25 11:09:17 +01:00
Felix Raimundo
144ec9d556
Use proper english name for sine.
...
Change-Id: I44c1bed203b126e0bd36be1efe00b7f5df9cff06
2016-03-24 18:40:41 +01:00
Felix Raimundo
46ffb55ec3
Add parsing test for trigo functions.
...
Change-Id: Ibcf1dd1759cd106521023f0c2adadc1f993f3eaa
2016-03-24 18:30:44 +01:00
Felix Raimundo
7f660ffbd5
Horizontal layout finished.
...
Change-Id: Id02daf672668d0c946e3008bdfd0e3f00d165864
2016-03-24 18:24:16 +01:00
Romain Goyet
b79e7483f4
Poincare: Adding SimplifyAdditionMerge
...
Change-Id: I6f922cce8178d5313a46d611e7ab166c52282127
2016-03-24 17:47:04 +01:00
Felix Raimundo
4707459a19
Update functions to use the clone interface.
...
Change-Id: I6b4d6be5b1d963bc7d97851432e40844d3619d8d
2016-03-24 16:54:53 +01:00
Felix Raimundo
f5f5399e92
Horizontal layout
...
Change-Id: Ie87dc14531e04b3577b691ae141d9b6a6d58a618
2016-03-24 16:09:25 +01:00
Felix Raimundo
11537ef794
Remove call to get_char to fix tests.
...
Change-Id: I87e12b9ce5fc807edfcf1460e419bceed23474dd
2016-03-24 16:09:25 +01:00
Felix Raimundo
3e632f5586
Rename text_input to utils, add a util in it.
...
Change-Id: I5d37ed0a3a21e7d62aa061a6b09f30065c4cd8a6
2016-03-24 16:09:25 +01:00
Felix Raimundo
d105236da9
Add the Function and trig functions classes and layout.
...
We create an abstraction for functions with the function class.
Change-Id: Ia52f38da2ab3fb6781ad77c1b909676c53a4f424
2016-03-24 16:09:25 +01:00
Romain Goyet
ed95a3c564
Poincare: Test the SimplifyAdditionInteger
...
Change-Id: Ic8146a509c0c6b3ace72900cbb9854d181783de7
2016-03-24 15:51:41 +01:00
Romain Goyet
c43211cb45
Poincare: Expression::isIdenticalTo
...
Change-Id: I4a28b5b771efc5a00f49aeaa725c264e87e96c88
2016-03-24 15:51:22 +01:00
Romain Goyet
32745b9fe4
Misc cleanups
...
Change-Id: Ie9b5c06a3db22109e92197e4627d72a16c6bf54a
2016-03-24 15:50:52 +01:00
Romain Goyet
202d110488
Add a BinaryOperation class
...
Parent of Fraction, Power, Subtraction
Change-Id: Ibb03e96062acd4870c5f10fe21eeea896a5927ec
2016-03-24 15:49:58 +01:00
Romain Goyet
aa3595ad54
Poincare: Add a LeafExpression class
...
Parent of Symbol, Integer, Float
Change-Id: I866ec888b007ea8e486f5627039f934bddcc9ace
2016-03-24 15:48:11 +01:00
Romain Goyet
59092a66df
Remove an useless cast
...
Change-Id: Ice3227284b5f31c08e9b18fe4696e7910e2bd0bc
2016-03-24 13:53:21 +01:00
Romain Goyet
d50e245398
Poincare: Simplify Integer addition
...
Change-Id: Iedcdbe2ae20dd6fe648ca168fe80e3be5f2c31b8
2016-03-24 13:53:08 +01:00
Romain Goyet
0d7813dc7b
Poincare: Expressions can now be cloned
...
Change-Id: I5a291c56dd031ec5e7aa6fbfe09823807f1b0e3c
2016-03-24 13:35:16 +01:00
Romain Goyet
ae3f087a95
Poincare: CommutativeOperation can take an expression of any length
...
Change-Id: Icf86134c9d3daf14636b073c8215a4e614d2b3f6
2016-03-24 13:10:41 +01:00
Romain Goyet
6edb36cef3
Poincare: Expression parsing shouldn't modify the string
...
Change-Id: I29bd1a81fa0b88b7151e3a79a47d287e9775b357
2016-03-24 13:09:54 +01:00
Romain Goyet
fe3667639f
Merge "Poincare: Add a CommutativeOperation class"
2016-03-24 11:54:48 +01:00
Romain Goyet
657c4d8299
Merge "Poincare: Simplifier -> Simplify"
2016-03-24 11:54:45 +01:00
Romain Goyet
7b40c0a948
Merge "Poincare: Clean the Expression::Type"
2016-03-24 11:54:39 +01:00
Félix Raimundo
5e1edae4a9
Merge "Remove hardcoded font size."
2016-03-24 11:43:04 +01:00
Romain Goyet
3e5695de21
Poincare: Add a CommutativeOperation class
...
Change-Id: I420ff65050de513d7b7db94afed2e5bb9f044390
2016-03-24 11:42:08 +01:00
Romain Goyet
7f0a3f94bb
Poincare: Simplifier -> Simplify
...
Change-Id: I1dfdf9e9d99ffd0ce604547b54c88263e621b97b
2016-03-24 10:39:00 +01:00
Romain Goyet
dfdaa54928
Poincare: Clean the Expression::Type
...
Change-Id: I3809a8b1b040314466554866555fb634c35156a5
2016-03-24 10:19:04 +01:00