Laury
f95f9ebb2d
[poincare] Better simplification of sequences
2022-02-24 18:48:10 +01:00
Laury
23af100ed5
[poincare] Allow replacement of sequences by their definition if rank is an integer
2022-02-24 18:05:30 +01:00
Yaya-Cout
169fb7404e
Fix spelling ( #128 )
...
* Fix spelling in .cpp files
* Fix spelling in all files
2022-01-20 17:21:35 +01:00
Yaya-Cout
8126e0da7e
Fix cursor storage ( #120 )
2022-01-10 20:53:38 +01:00
Mino1289
fdef2b5d6e
Merge branch 'upsilon-dev-latex'
2022-01-09 21:47:51 +01:00
Laury
7b4a94296b
[calculation][poincare] Revert 'b8544e3' and improve equal simplification
2021-09-01 17:31:51 +02:00
M4x1m3
9c8112658e
Fixed device build
2021-03-15 21:05:52 +01:00
M4x1m3
3ccd7d0fb7
Merge branch 'kmat' of https://github.com/RedGl0w/epsilon into RedGl0w-kmat
2021-03-15 20:48:43 +01:00
Evann DREUMONT
763ce87d14
[poincare/parser] Use infinity symbol
...
- Use infinity symbol
- Parse inf, oo, infity
2021-02-10 17:20:14 +01:00
Joachim LF
9b17d1b882
[Update] Epsilon 15.3.1
2021-01-21 19:56:06 +01:00
Hugo Saint-Vignes
e09bd0a18c
[poincare] Factorize reduce and removeUnit methods
2020-12-22 17:32:40 +01:00
Gabriel Ozouf
94b2da8e60
[poincare/zoom] Comment on the representation of ranges
2020-12-10 13:45:56 +01:00
Gabriel Ozouf
35bfb8ec16
[poincare/zoom] Method ExpandSparseWindow
...
This method is used to remove extraneous empty sapce in the middle of
the window for functions that are discontinuous between their points of
interest.
2020-12-10 13:45:56 +01:00
Gabriel Ozouf
625a89e610
[poincare/zoom] RefinedYRangeForDisplay signature
2020-12-10 13:45:56 +01:00
Gabriel Ozouf
71070ee052
[poincare/zoom] Helper method SetZoom
...
Create a method SetZoom to zoom in and out on a window.
2020-12-10 13:45:56 +01:00
Gabriel Ozouf
072fdda6b8
[poincare/zoom] Redraft search of orthonormal range
...
To find the optimal range with a specified ratio, we compute the values
of the function on a default range, then center the Y axis to display
the maximum number of points of the function.
2020-12-07 15:58:56 +01:00
Gabriel Ozouf
bd302bb67b
[poincare/unreal] Type in derivate method
...
Unreal's derivate method returns true, to signify that it is unchanged
by the derivation operation. This implementation mostly exists for
documentation, as an Unreal derivand will be handled by the
defaultShallowReduce method.
2020-12-07 15:01:52 +01:00
Gabriel Ozouf
7ae03975cc
[poincare/derivative] Derivate special numbers
...
Derivate the numbers Undefined, Unreal, Infinity symbolically :
Undefined -> Undefined
Unreal -> Unreal
Infinity -> Undefined
2020-12-07 15:01:52 +01:00
Gabriel Ozouf
1a47207bee
[poincare/trigonometry] Add comments
2020-12-04 11:59:12 +01:00
Gabriel Ozouf
64208a7f3c
[poincare/trigonometry] Method UnitConversionFactor
...
Change-Id: I4ef3e4404071a305354b572e15e5199040f9bf48
2020-12-04 11:59:12 +01:00
Gabriel Ozouf
f329ca825f
[poincare] Add ReductionContext to unaryFunctionDifferential
...
Change-Id: I99ba90f8c38cab5d8fe2139f49e4f94c1d52d296
2020-12-04 11:59:12 +01:00
Hugo Saint-Vignes
636e863323
[escher] Moved repetition factor logic up in Escher from poincare
...
Change-Id: I7c8f932e3e7d04c928ca881113ba6b5df05b94e7
2020-12-02 17:20:32 +01:00
Gabriel Ozouf
764d14fed1
[poincare/constant] Constants differentiate to 0
2020-12-02 16:54:09 +01:00
Gabriel Ozouf
ca9cb63909
[poincare/zoom] Reduce the step for searching points of interest
...
The algorithm to search for points of interest will miss some. We reduce
the step to make it more precise, so that tan(x) and tan(x-90) have the
same profile.
Change-Id: Ia1bac1d4e7b98d2d6f36f8ce12ed9dac67d40198
2020-11-26 17:51:40 +01:00
Gabriel Ozouf
e4162976e4
[poincare/zoom] Method NextUnit
...
Change-Id: I8200c38fd44b662dcffa8e9850fc272f3e2dc7e8
2020-11-26 17:51:40 +01:00
Hugo Saint-Vignes
d8527b02ad
[poincare] Add a vector type for matrix product and norm operations
...
Change-Id: I28b0956273f8c0a3a9bdc4389956caa106d6b8af
2020-11-19 11:41:29 +01:00
Hugo Saint-Vignes
522456677a
[poincare] Add an Array class to factorize Matrix and Grid methods
...
Change-Id: Ia61caf0bf182c1111119740d43d957f203c0975c
2020-11-19 11:41:29 +01:00
Hugo Saint-Vignes
bee8d8531b
[poincare] Handle horizontal vectors
...
Change-Id: I98088b2b9f2dbc0549795a5c3eed4787fea70068
2020-11-19 11:41:29 +01:00
Hugo Saint-Vignes
73b5b0775a
[poincare] Avoid nullptr context on non-Numbers sign and nullStatus methods
...
Change-Id: I3361344c1e0b50cdbe999d6ea50025022a51f603
2020-11-16 17:12:42 +01:00
Léa Saviot
4df996cfd2
[poincare/expression_node] TODO: use ReductionContext via pointers
2020-11-09 15:50:27 +01:00
Léa Saviot
5df60e946a
[poincare] shallowBeautify can modify the reduction context
...
UnitConvert must set UnitConversion to None, otherwise the unit asked
for in the conversion might get changed after being properly set in
UnitConvert::shallowBeautify.
2020-11-09 15:50:27 +01:00
Émilie Feral
d789e8da97
[poincare] In Multiplication::shallowBeautify, when extracting the unit,
...
reduce without changing the unit in order to extract the right unit.
This fixes the following bug: simplify "πππ23*_cK"
2020-11-06 14:51:49 +01:00
Émilie Feral
7142f9545e
[poincare] Finish replacing approximateContext
2020-11-04 15:58:41 +01:00
Léa Saviot
f8b3156f19
[poincare] Start replacing approximateContext
2020-11-04 15:58:41 +01:00
Léa Saviot
644cf4dcf3
[poincare] Step II: create ApproximateContext
2020-11-04 15:58:40 +01:00
Émilie Feral
75dc415e27
[poincare] Step I: add a parameter to approximation routines to indicate
...
if we're within a reduction routine
2020-11-04 15:58:40 +01:00
Hugo Saint-Vignes
42f20fb58d
[poincare] Add NullStatus and sign for more complex expressions
...
Change-Id: Ic593517bf7a983985fe3c521e10c19ab0bca4191
2020-11-04 15:58:34 +01:00
Hugo Saint-Vignes
61d33be2a7
[poincare] Add NullStatus and sign for more expressions
...
Change-Id: I4443a28532f5b728afe169a3d2a70d9026bc1909
2020-11-04 15:58:34 +01:00
Hugo Saint-Vignes
4a3f749cc6
[poincare] Add NullStatus for expressions
...
Change-Id: Ibaba72e3e3589ba259c7b22d402e2b27937f27c1
2020-11-04 15:58:34 +01:00
Hugo Saint-Vignes
98499f6c9f
[poincare] Rename isRationalZero to isNumberZero
...
Change-Id: I554dd5e9b9ab3af4364ca23cde590f9e0a458ef8
2020-11-04 15:58:33 +01:00
Hugo Saint-Vignes
58114255e5
[poincare] implement isRationalZero for other numbers
...
Change-Id: I40f61958f9e51adb376407b2a512097962979417
2020-11-04 15:58:33 +01:00
Hugo Saint-Vignes
0d883bfb19
[poincare] Handle division by 0 when combining powers
...
Change-Id: I108ba8131ef2f8d3d210a769322a815121311f6b
2020-11-04 15:58:32 +01:00
Gabriel Ozouf
f491be2db5
[poincare/zoom] Accelerate normal range search
...
Change-Id: I4a7f2e024ca82a3996ad3e395c8f62ca4170ec9e
2020-11-04 15:58:24 +01:00
Gabriel Ozouf
c647bfe566
[poincare/zoom] Clean up and comment API
...
Change-Id: I58347d7188551471817fb334bcb54d5c5b398f72
2020-11-04 15:58:23 +01:00
Gabriel Ozouf
c4cd3ecffa
[poincare/zoom] Factor range sanitation
...
Checking wether the range that has been computed is suitable is now
done in Poincare::Zoom by SanitizeRange.
Change-Id: Ib7ff73a3beae29996b1a773744021ad85c6ba946
2020-11-04 15:58:22 +01:00
Gabriel Ozouf
b10be2c60c
[poincare/zoom] Method SanitizeRange
...
Create a method to clean up an ill-formed range, ie a range whose bounds
are not finite, or where max <= min.
Change-Id: If4525e65f95385cfa970be72bbcc21ad84286bfa
2020-11-04 15:58:22 +01:00
Gabriel Ozouf
1bfeeb5842
[poincare/zoom] Detect explosions
...
Add a clause in InterestingRangesForDisplay to detect strong variations.
This improve the graph for x^x or x^2+x+1 for instance.
Change-Id: I74214c2382cfe4b0e2603556dd8c6cbd450effc0
2020-11-04 15:58:20 +01:00
Gabriel Ozouf
6be5e7d62c
[apps/shared] Change Zoom API
...
Moved some code around to decrease redundancy and put more of the logic
into Poincare::Zoom
Change-Id: I4804cf39493ac7f2f0b3c4eb554e5c15c3cef1c9
2020-11-04 15:58:18 +01:00
Gabriel Ozouf
8572f4953c
[poincare/zoom] Method CombineRanges
...
The logic behind combining several ranges will be handled by the Zoom
class directly.
Change-Id: I4de3f020d94b9bc1a21953b0c416158c65beb606
2020-11-04 15:58:18 +01:00
Gabriel Ozouf
81e425eb04
[poincare/zoom] Method FullRange
...
Change-Id: Ibfaa0b694afecab312199b20b102a57901f34ae7
2020-11-04 15:58:17 +01:00