Commit Graph

7312 Commits

Author SHA1 Message Date
Léa Saviot
2c15c1ff82 [poincare] Simplify Integral::kronrodGaussQuadrature 2018-06-26 13:44:56 +02:00
Léa Saviot
e1e8e4c98e [poincare] Stop integral computation if evaluation if function is undef 2018-06-26 13:44:56 +02:00
Léa Saviot
7587b05c8b Some layout navigation 2018-06-25 13:50:38 +02:00
Léa Saviot
0af06b5f3a Add Layouts 2018-06-25 13:37:28 +02:00
Léa Saviot
517b2892bb TreeNode::swap 2018-06-22 15:42:28 +02:00
Léa Saviot
fbaaa96ab1 Fix TreePool::move 2018-06-22 15:40:51 +02:00
Léa Saviot
d7ea9f3bf7 Remove debug printing 2018-06-22 15:16:48 +02:00
Léa Saviot
6f598acc10 ReplaceWith and ReplaceChild methods on References 2018-06-22 15:12:19 +02:00
Léa Saviot
0fb04ea45a New TreeNode methods 2018-06-22 15:07:24 +02:00
Léa Saviot
2908c20def Add methods to tree node and new parent() algorithm 2018-06-22 15:07:24 +02:00
Léa Saviot
ac182b04d1 Clean TreeNode 2018-06-22 15:07:24 +02:00
Léa Saviot
edce759ae5 Rename operand to child 2018-06-22 15:07:24 +02:00
Léa Saviot
287c9ca990 TreeNode::parent algorithm 2018-06-22 15:07:24 +02:00
Léa Saviot
1adff31abd Remove TreeNode constructor arguments 2018-06-22 15:07:24 +02:00
Léa Saviot
267ae5843b Add const qualifier 2018-06-22 15:07:24 +02:00
Léa Saviot
9a2c458f49 Clean code 2018-06-22 15:07:24 +02:00
Léa Saviot
c46bb03247 Replace new/delete TreeNode with TreePool::create/discardTreeNode 2018-06-22 15:07:24 +02:00
Léa Saviot
4440f183c4 TreeNode::size is pure virtual 2018-06-22 15:07:24 +02:00
Léa Saviot
a63d7e35fe Protected/private tree node methods 2018-06-22 15:07:24 +02:00
Léa Saviot
b201e82cdd Fix some methods 2018-06-22 15:07:24 +02:00
Léa Saviot
b81d491644 Clean code and debug printing 2018-06-22 15:07:24 +02:00
Léa Saviot
f39f974b76 One tree pool instance 2018-06-22 15:07:24 +02:00
Léa Saviot
8ed138fafe NodeForIdentifier array works properly 2018-06-22 15:07:24 +02:00
Léa Saviot
c6af4bb16c Clean and correct TreeNode 2018-06-22 15:07:24 +02:00
Léa Saviot
4c300e66d7 Reorganize tree_pool.h 2018-06-22 15:07:24 +02:00
Léa Saviot
7af35728f2 Fix TreePool::insert, move and other methods 2018-06-22 15:07:24 +02:00
Léa Saviot
42c57ae6f2 Fix TreePool::alloc and dealloc 2018-06-20 17:08:00 +02:00
Léa Saviot
2f8d8890cb Map node/identifier in an array and implement newIdentifier() 2018-06-20 17:08:00 +02:00
Léa Saviot
3777304adb Implement some tree methods 2018-06-20 14:19:42 +02:00
Romain Goyet
3d74d52ec6 [python] Highlight minus-equal, plus-equal as operators 2018-06-20 11:22:32 +02:00
Romain Goyet
74330bb330 [python] Properly compute all token length 2018-06-20 11:22:32 +02:00
Léa Saviot
b8fbc35793 [emscripten] Fix float rouding errors when computing grid axis labels
Emscripten converts C++ floats to doubles, which produces rounding
errors. In the Graph application, when displaying y=sin(x), the ordinate
'1' displayed "10" instead, because the exponent of 1000f was wrongly
computed.
To prevent this, we add the -s PRECISE_F32=1 flag, which uses 32-bits
floating point values for floats.
See https://kripken.github.io/emscripten-site/docs/getting_started/FAQ.html#why-do-i-get-odd-rounding-errors-when-using-float-variables
2018-06-18 16:33:44 +02:00
Romain Goyet
4a7e4ee512 [emscripten] Add a Module.onDisplayRefresh callback 2018-06-18 10:08:01 +02:00
Émilie Feral
7df03ec762 [code] In lock-on-console mode: enable poping controllers on the stack
which are above the console controller
2018-06-13 13:23:46 +02:00
Émilie Feral
769bc1ad3c [code] In lock-on-console mode: Enable interrupting input loop and execution when clicking on 'home' or 'back' 2018-06-13 13:23:46 +02:00
Ecco
e304da5ee1 [emscripten] Removing trailing comma hack more obvious 2018-06-13 10:02:47 +02:00
Ecco
3d9748d172 [emscripten] Remove empty line 2018-06-13 10:02:47 +02:00
Claire Savinas
208f340993 Fix build using emsdk version sdk-1.37.40-64bit 2018-06-13 10:02:47 +02:00
Romain Goyet
a301de1378 Addition seems to be working 2018-06-12 17:39:10 +02:00
Émilie Feral
3681a85da7 Makefile: Version 1.6.0 2018-06-12 17:27:17 +02:00
Léa Saviot
5270c7740b [escher] Fix cursor position when copy pasting 2018-06-12 16:55:01 +02:00
Émilie Feral
317e1f0389 [code] Enable interrupting an infinite input() loop when clicking on home 2018-06-12 16:52:12 +02:00
Romain Goyet
68f663d47e Use operator new/delete directly on ExpressionNode 2018-06-12 16:50:49 +02:00
Léa Saviot
8e72a0fee6 [poincare] Fix LayoutEngine writeInBuffer stop conditions 2018-06-12 16:38:58 +02:00
Émilie Feral
bf0b80b0c0 [poincare] Tests: fix test on Expression::getVariables 2018-06-12 16:27:01 +02:00
Émilie Feral
d9afd64b67 [poincare] Fix tests on layout 2018-06-12 16:27:01 +02:00
Émilie Feral
b4e3143e76 [Kandinsky] Regular font: new capital delta 2018-06-12 16:27:01 +02:00
Léa Saviot
ae1482bcd4 [poincare] Fix Matrix::writeTextInBuffer 2018-06-12 16:25:01 +02:00
Léa Saviot
de47bf5486 [apps/reg] Fix dynamic view initialization 2018-06-12 16:24:30 +02:00
Léa Saviot
96909a0c21 [apps/reg] Fixing missing space 2018-06-12 15:51:13 +02:00