Commit Graph

2847 Commits

Author SHA1 Message Date
Émilie Feral
072e52ae85 [shared] Re-design StorageCartesianFunction 2018-11-23 12:04:01 +01:00
Léa Saviot
97cba08b23 [apps] Clean GLobalContext 2018-11-23 12:04:01 +01:00
Léa Saviot
956e97b3fe [poincare] Fix Store::shallowReduce 2018-11-23 12:04:01 +01:00
Léa Saviot
dd0d390a3f [poincare] Fix Expression::ExpressionFromAddress 2018-11-23 12:04:00 +01:00
Léa Saviot
2793a622e2 [apps] Store function metadata in record 2018-11-23 12:04:00 +01:00
Léa Saviot
79e962f459 [poncare/apps] Move GlobalContext from Poincare to Apps::Shared 2018-11-23 12:04:00 +01:00
Léa Saviot
2442627e3c [apps] Remove attributes from StorageExpressionModel and derivates 2018-11-23 12:04:00 +01:00
Léa Saviot
03bb073ba3 [poincare] Add metadata (color, isActive, displayDerivative) to Function 2018-11-23 12:04:00 +01:00
Léa Saviot
907eedd4bc [poincare] Use SymbolAbstract in setExpressionForSymbol 2018-11-23 12:04:00 +01:00
Émilie Feral
da2d6de0c1 [poincare] SymbolAbstract: add a static method TruncateExtension 2018-11-23 12:04:00 +01:00
Léa Saviot
23f62b8dbe [poincare] Factorize approximate<T> in Function 2018-11-23 12:04:00 +01:00
Léa Saviot
6197ebd4c5 [poincare] SymbolAbstract is parent of Symbol and Function 2018-11-23 12:04:00 +01:00
Émilie Feral
5411fa5279 [poincare] GlobalContext: make the '.func' extension public 2018-11-23 12:04:00 +01:00
Léa Saviot
de592ee5fd [apps/graph] Generate default function names 2018-11-23 12:04:00 +01:00
Léa Saviot
d1d2ea91ef [poincare] Add test on user defined functions and variables 2018-11-23 12:04:00 +01:00
Léa Saviot
eb427f701e [poincare] Init SymbolNode so it can give its size as soon as created 2018-11-23 12:04:00 +01:00
Léa Saviot
aebeeda171 [poincare] Fix Function::size() 2018-11-23 12:04:00 +01:00
Léa Saviot
63e5960ae1 [poincare] Handle empty record when creating its expression 2018-11-23 12:04:00 +01:00
Léa Saviot
4af3d27431 [poincare] ExpressionFromRecord is in Expression, not in GlobalContext 2018-11-23 12:04:00 +01:00
Léa Saviot
354b6e9c72 [apps] First attempt at bridging Funciton app with the shared storage 2018-11-23 12:04:00 +01:00
Léa Saviot
d86ee99856 [poincare] UnknownX Symbol layout is the character 'x' 2018-11-23 12:03:59 +01:00
Léa Saviot
2e95730e61 [poincare] Parse user-defined functions 2018-11-23 12:03:59 +01:00
Léa Saviot
9cbca3c277 [poincare] Implement Function::shallowReduce 2018-11-23 12:03:59 +01:00
Léa Saviot
3ff725c25e [poincare] Assertion that this is not ans in Symbol::shallowReduce 2018-11-23 12:03:59 +01:00
Léa Saviot
a039655cf2 [poincare] Fix Store::shallowReduce 2018-11-23 12:03:59 +01:00
Léa Saviot
004b84a3b1 [poincare] Remove old code 2018-11-23 12:03:59 +01:00
Léa Saviot
9353bde5ca [poincare] In Symbol::shallowReduce, use parameter replaceSymbols 2018-11-23 12:03:59 +01:00
Léa Saviot
cd0c4c5273 [poincare] Fix Store::shallowReduce 2018-11-23 12:03:59 +01:00
Léa Saviot
3809ef222d [poincare] deep and shallow Reduce have a "replace symbol" bool param 2018-11-23 12:03:59 +01:00
Léa Saviot
45df061dbf [poincare] Store::shallowReduce replaces unknown with UnknownX 2018-11-23 12:03:59 +01:00
Léa Saviot
a7a719df4a [poincare] Handle functions in replaceSymbolWithExp and similar methods 2018-11-23 12:03:59 +01:00
Léa Saviot
1159d65010 [poincare] Handle Uninitialized expression in Function methods 2018-11-23 12:03:59 +01:00
Léa Saviot
3802639510 [poincare] Remove isVariableSymbol test 2018-11-23 12:03:59 +01:00
Léa Saviot
991854defd [poincare] remove use of strncmp 2018-11-23 12:03:59 +01:00
Léa Saviot
4b37163653 [poincare] Fix more "char * []" type problems 2018-11-23 12:03:59 +01:00
Léa Saviot
266e45ecd8 [poincare] Store test should clean the storage after it finishes. 2018-11-23 12:03:59 +01:00
Léa Saviot
cf86fd94ce [poincare] Fix simplify_mix test 2018-11-23 12:03:59 +01:00
Léa Saviot
1799451b80 [poincare] Fix Integer log 2018-11-23 12:03:59 +01:00
Léa Saviot
6979c9ee59 [poincare] Fix symbol name comparison 2018-11-23 12:03:59 +01:00
Léa Saviot
870cd926c1 [poincare] Fix getVariables argument type 2018-11-23 12:03:59 +01:00
Léa Saviot
c3c44662dd [poincare] Fix integral tests 2018-11-23 12:03:59 +01:00
Léa Saviot
a090a274e5 [poincare] Fix diff tests 2018-11-23 12:03:59 +01:00
Léa Saviot
d0df271b6e [poincare] Clean parser 2018-11-23 12:03:59 +01:00
Léa Saviot
256b2f8b76 [poincare] diff takes the unknown as argument
diff(f(x), x, a) will give diff of f with unknown variable x, evaluated
for x = a;
2018-11-23 12:03:59 +01:00
Léa Saviot
95b59ce90a [poincare] Fix tests by using the UnknownX charset 2018-11-23 12:03:59 +01:00
Émilie Feral
82e6e0895c [poincare] GlobalContext: add a flag describing the storage memory state 2018-11-23 12:03:59 +01:00
Léa Saviot
ce14c5d694 [poincare] Fix Power::shallowReduce. Real complexes are not NAN 2018-11-23 12:03:59 +01:00
Léa Saviot
f06d02e6e7 [poincare] Add simple addition simplification test 2018-11-23 12:03:59 +01:00
Léa Saviot
6b348f6535 [poincare] Fix test : AB is now interpreted as a single symbol, not as A*B! 2018-11-23 12:03:59 +01:00
Léa Saviot
da407df9b1 [poincare] Fix method name typo 2018-11-23 12:03:59 +01:00