Léa Saviot
2aa92ecffa
[apps] Add a proof for CurveViewRange::computeGridUnit's algorithm
2019-01-10 11:42:02 +01:00
Léa Saviot
a65bdb1dfc
[apps] Increase the Y axis label buffer sizes in curve views
2019-01-10 11:42:02 +01:00
Léa Saviot
d76c77f323
[apps] Prevent too much zooming on curve views
...
This removes curve drawings that are ugly because of float imprecision,
such as cos(x)^2+sin(x)^2
2019-01-10 11:42:02 +01:00
Léa Saviot
36faebab3d
[apps] Fix some KDCoordinate to float conversions
2019-01-10 11:42:02 +01:00
Léa Saviot
8de74f4158
[apps] Fix one pixel in CurveView::stampAtLocation
2019-01-10 11:42:02 +01:00
Léa Saviot
4c6a5c9819
[apps] When zooming on a curve, do not change the yRange
...
It changed because of the zoom banner
2019-01-10 11:42:02 +01:00
Léa Saviot
cea413e91d
[apps] Fix Orthonormal setting in graphs
...
It was not perfectly orthormal.
2019-01-10 11:42:02 +01:00
Léa Saviot
020e459379
[apps] Clean shared/interactive_curve_view_range.cpp
2019-01-10 11:42:02 +01:00
Léa Saviot
c50aba1873
[apps] Clean shared/initialisation_parameter_controller.cpp
2019-01-10 11:42:02 +01:00
Léa Saviot
cf79795540
[apps] Fix blob left of screen when drawing curves
...
Try for instance f(x)=cos(x) in Graph
2019-01-10 11:42:02 +01:00
Léa Saviot
058b49a063
[apps/Seq/Reg] Do not pan to cursor if no yAuto
2019-01-10 11:42:02 +01:00
Léa Saviot
18381fd334
[apps] Add FLT_EPSILON in float comparisons in interactive_curve_vw_rge
...
This fixes the removal of yAuto when displaying the function f(x)=cos(x)
2019-01-10 11:42:02 +01:00
Léa Saviot
37ac12b1da
[apps/graph] When changing the window manually, do not pan to cursor
2019-01-10 11:42:02 +01:00
Léa Saviot
531b555949
[apps/sequence] Fix method that should be virtual pure
...
The following scenaro crashed in DEBUG=1 and did not resize the window
correctly in DEBUG=0.
Got to sequence
u(n)=n
Go to sequence/graph
Remove yAuto
Go to sequence/list
v(n) = cos(n)
remove u(n)
Go to sequence/graph
2019-01-10 11:42:02 +01:00
Léa Saviot
de3d200b81
[apps/graph/reg/seq] Do not switch on y auto each time graph appears
2019-01-10 11:42:02 +01:00
Léa Saviot
19e8b2ee1c
[apps] Fix InteractiveCurveViewController::addMargin
2019-01-10 11:42:02 +01:00
Léa Saviot
404db60a3d
[apps/shared] Code cleaning and inlining
2019-01-10 11:42:02 +01:00
Léa Saviot
3595a8e628
[apps/sequence] Align sequence title and expression baselines
2019-01-10 11:42:02 +01:00
Léa Saviot
64446f24e6
[apps/graph] Increae horizontal margin of function name in list
2019-01-10 11:42:02 +01:00
Léa Saviot
964703bb03
[apps/graph] Increase name column width to max when editing function name
2019-01-10 11:42:02 +01:00
Léa Saviot
6ba70c332b
[apps/graph] Fix redrawing bugs due to missing memoization reset
2019-01-10 11:42:02 +01:00
Léa Saviot
6e77bb4123
[apps] Revert Equal after function name
2019-01-10 11:42:02 +01:00
Léa Saviot
ff33ad3ad1
[apps] In FunctionTitleCell, draw the equal separately
...
This way, we can better manage the margins around the equal
2019-01-10 11:42:02 +01:00
Léa Saviot
738d21cc2b
[apps/graph] Align function name and expresion baselines
2019-01-10 11:42:02 +01:00
Léa Saviot
569e0e884e
[apps/graph] Memoize baselines in functions list
2019-01-10 11:42:02 +01:00
Léa Saviot
9b9a0aa009
[apps/graph] Add scroll indicators in funcitons list
2019-01-10 11:42:02 +01:00
Léa Saviot
8e8d99e8e9
[apps/graph] Do not draw the vertical separator in functions list
2019-01-10 11:42:02 +01:00
Léa Saviot
348c5c0dae
[apps/graph] Add equal after function name
2019-01-10 11:42:02 +01:00
Léa Saviot
ff1c137fe1
[apps/sequence] Add scroll indicators in sequence list
2019-01-10 11:42:02 +01:00
Léa Saviot
3b2eaa5dea
[apps/sequence] Sequence title cells are aligned to the right
2019-01-10 11:42:02 +01:00
Léa Saviot
216b16fc11
[apps/shared] Increase memoized heights count in StorageExpModelListCtrl
2018-12-20 14:51:51 +01:00
Léa Saviot
13419f434f
[apps/shared] Memoize in StorageFuncListCtrl::indexFromCumulatedHeight
2018-12-20 14:51:51 +01:00
Léa Saviot
6740198e06
[apps/shared] Constexpr reset value in storage_expr_model_list_ctrlr
2018-12-20 14:51:51 +01:00
Léa Saviot
56504525c9
[Makfile] Remove superfluous test_objs
...
We now build all objects even for test, so we do not need most of the
previous test_objs
2018-12-19 09:44:58 +01:00
Léa Saviot
f6a5759a16
[poincare] Fix the replacement of unknowns in the storage
...
In the Graph app, define f(x) = cos(x) and g(x)=diff(f(x),x,x).
The graph and table are perfectly computed, but in the Calculation apps,
g(5) fails.
2018-12-19 09:40:37 +01:00
Émilie Feral
ec08f027c0
[poincare] Revert: Use Simplify instead of Reduce II
...
To approximate an expression, it is more precise to
approximate its simplified form than its reduced form. Indeed, we want
to minimize the number of nodes in the expression before approximating.
For instance, a/b has fewer nodes than a*b^-1.
2018-12-18 10:46:20 +01:00
Émilie Feral
78e4c9066f
[shared] Revert: Use Simplify instead of Reduce
...
To approximate an expression, it is more precise to
approximate its simplified form than its reduced form. Indeed, we want
to minimize the number of nodes in the expression before approximating.
For instance, a/b has fewer nodes than a*b^-1.
2018-12-18 09:39:43 +01:00
Émilie Feral
aa0b785f3d
[shared] In models Equation, Sequence: the recorded expression does not
...
need to be beautified. Use Reduce instead of simplify
2018-12-17 09:41:14 +01:00
Émilie Feral
c3e7a0667a
[shared] Fix StorageExpressionModel::expressionReduced: take into
...
account the prefered angle unit!
2018-12-17 09:41:14 +01:00
Léa Saviot
99d97ecb45
[apps] Do not recompute stop condition in for loop
2018-12-13 12:20:22 +01:00
Léa Saviot
de339c44ae
[apps] Handle StorageFunction::m_color unaligned read on emscripten
2018-12-12 17:49:51 +01:00
Léa Saviot
96c6143c6e
[apps] Fix graph vertical navigation
...
It would loop when three equal functions are defined.
2018-12-12 11:14:51 +01:00
Émilie Feral
cf92eb8506
[poincare] Discard useless argument 'replaceSymbols' from simplification
...
routine
2018-11-30 09:53:31 +01:00
Émilie Feral
e56cfa3f94
[shared] Fix the buffer size of curve view labels
2018-11-30 09:40:15 +01:00
Émilie Feral
e112d6cf17
[apps] Shared: revert change on ExpressionModel. The memoized expression
...
should be reduced.
2018-11-28 13:58:36 +01:00
Léa Saviot
f81e221f50
[apps/shared] Fix char buffer initialization (make it const)
2018-11-23 14:15:50 +01:00
Léa Saviot
d7d348deac
[poincare] Fix ExpressionNode::shallowReplaceReplaceableSymbols
2018-11-23 12:04:10 +01:00
Léa Saviot
2a38e4c31d
Fix comparison warning
2018-11-23 12:04:10 +01:00
Léa Saviot
53e4a290f7
[poincare] Rename Expression:parse in Parse
2018-11-23 12:04:09 +01:00
Léa Saviot
94603b2b7d
[poincare] Layout::serialize is serializeForParsing or ParsedExpression
...
serializeForParsing serializes the layout once,
serializeParsedExpression serializes the layout, parses it and
serializes it again.
2018-11-23 12:04:09 +01:00