Commit Graph

7400 Commits

Author SHA1 Message Date
Léa Saviot
b5c19d37da [poincare] By default, the complex mode is "Real" 2019-01-10 11:42:05 +01:00
Émilie Feral
b3a8441289 [solver] Fix tests on EquationStore: delta discriminant is counted as a
solution
2019-01-10 11:42:05 +01:00
Émilie Feral
a539b2f061 [poincare] Test: fix tests on Complex Format 2019-01-10 11:42:05 +01:00
Émilie Feral
c3b335212c [solver] Add a warning message when a polynomial has no real root 2019-01-10 11:42:05 +01:00
Émilie Feral
8cf6006a58 [solver] I18n: add messages "The polynomial has no real root" 2019-01-10 11:42:05 +01:00
Émilie Feral
4ccf1f08a9 [solver] Delta discriminant is counted as a solution to clear the code 2019-01-10 11:42:05 +01:00
Léa Saviot
fbb1fbd138 [apps/code] Handle nullptr prompt text in input 2019-01-10 11:42:05 +01:00
Léa Saviot
05bfbe83ac [escher/pointer_text_view] Clean minimalSizeForOptimalDisplay
It was unneedingly overriden + added escape case on nullptr text
2019-01-10 11:42:05 +01:00
Émilie Feral
43522d0dc9 [poincare] Power: shallowBeautify for ReductionTarget::System turn
x^(p/q) into root(x,q)^p to use the special case of root(x, p) with x
real and p integer might have a real solution in 'Real' complex format
2019-01-10 11:42:05 +01:00
Émilie Feral
2a71f2bada [poincare] NthRoot: special case for approximation of form root(x,p)
with x real and p integer in Real complex format

In this case, root(x,p) might have a real result which is not the
principale angle returned by the standard library
2019-01-10 11:42:05 +01:00
Émilie Feral
f6026254be [poincare] Add an argument ReductionTarget to shallowBeautify 2019-01-10 11:42:05 +01:00
Émilie Feral
a24f65bd46 [poincare] Revert special case when approximating x^(p/q) with x real
and p, q integer

That hugely slows down the approximation routine
2019-01-10 11:42:05 +01:00
Léa Saviot
56aaea79cb [poincare/rational] Fix template declaration 2019-01-10 11:42:05 +01:00
Léa Saviot
4788495d62 [poincare/parser] -1/2 gives - 1/2 and not -(1) / 2 2019-01-10 11:42:05 +01:00
Émilie Feral
9709fb66b1 [poincare] When approximating, make a special case for x^(p/q) when the
complex format is real.

In this case, x^(p/q) might have a real result which is not the
principale angle returned by the standard library
2019-01-10 11:42:05 +01:00
Émilie Feral
1251821d3e [poincare] Change name: ReductionTarget::TopDownComputation -->
ReductionTarget::System
2019-01-10 11:42:05 +01:00
Émilie Feral
c6cf0eb000 [poincare] Discard BottomUpComputation of ReductionTarget because it is
never used
2019-01-10 11:42:05 +01:00
Émilie Feral
4841542750 [poincare] Add ComplexFormat argument to the approximation routine 2019-01-10 11:42:05 +01:00
Léa Saviot
b30c197d36 [test/poincare] Tests on expression order 2019-01-10 11:42:05 +01:00
Léa Saviot
f7f77ef9f7 [apps/code] When OK or EXE on empty python input loop, stop the input 2019-01-10 11:42:05 +01:00
Émilie Feral
4283eb7e32 [poincare] Power: fix approximation
0^0 should be equal to undef
2019-01-10 11:42:05 +01:00
Léa Saviot
c4bd55ef08 [apps/code] Clean ConsoleController::printText 2019-01-10 11:42:05 +01:00
Léa Saviot
177373c5af [apps/code] Handle carriage returns in the input text 2019-01-10 11:42:05 +01:00
Léa Saviot
2d4d92090c [apps/code] Inline code in console_store 2019-01-10 11:42:05 +01:00
Léa Saviot
e2ac56abc6 [apps/curve_view] Fix grid lines not drawn due to pixel to float error 2019-01-10 11:42:05 +01:00
Léa Saviot
9639469761 [apps/curve_view] Fix drawGridLines that drew the opposite axis 2019-01-10 11:42:05 +01:00
Léa Saviot
869e534b4b [apps] MAke some InteractiveCurveViewRangeDelegate methods const 2019-01-10 11:42:05 +01:00
Léa Saviot
5d1ef0f3f0 [apps/sequence] Use first ranks when computing graph range
Put two sequences u(n+1)=u(n) and v(n+1) = v(n), u(100) = 50, v(50) = 8.
Basic settings computed the x range as [0,10] before, now it is
[50,110].
2019-01-10 11:42:05 +01:00
Léa Saviot
6720ad7b38 [apps] Rename interestingXRange as interestingXHalfRange 2019-01-10 11:42:05 +01:00
Léa Saviot
17a9388623 [apps/sequence] Clean GraphController 2019-01-10 11:42:05 +01:00
Léa Saviot
4d1114ef63 [apps/curve_view] Increase numberOfSignificant digits when needed
Labels might be rounded to the same value (for example, in Probability,
draw a normal law with mu = 100000 and sigma = 0.1), in which case we
need to display extremal labels only, with increased number of
significant digits.
2019-01-10 11:42:05 +01:00
Léa Saviot
460b49010c [apps/curve_view] Do not draw the 0 label if the axis is floating
The 0 is represented by the other axis
2019-01-10 11:42:05 +01:00
Léa Saviot
37117ed7e7 [apps/curve_view] Do not draw extremal Y label if it overlaps X labels 2019-01-10 11:42:05 +01:00
Léa Saviot
718160b964 [apps] Draw grid lines in bold and light colors in curve_view 2019-01-10 11:42:05 +01:00
Léa Saviot
5d7a7c7371 [apps/curve_view] Make drawGridLines private 2019-01-10 11:42:05 +01:00
Léa Saviot
69105572ef [apps] Change axes drawing order in curve views 2019-01-10 11:42:05 +01:00
Léa Saviot
335264e944 [apps] Typo: drawAxes is now drawAxis 2019-01-10 11:42:05 +01:00
Léa Saviot
e5f0959239 [poincare] Static Expression methods start with uppercase 2019-01-10 11:42:05 +01:00
Léa Saviot
271e22628b Typo in comment 2019-01-10 11:42:05 +01:00
Léa Saviot
8a2bdb4c42 [poincare] When reducing store, handle non reductible left side 2019-01-10 11:42:04 +01:00
Léa Saviot
d6e7f78705 [apps/solver] Clean comments 2019-01-10 11:42:04 +01:00
Léa Saviot
014b481a9b [apps/solver] Fix iteration max index 2019-01-10 11:42:04 +01:00
Léa Saviot
34b22298c4 [ion/storage] Add assertion on dot in record name 2019-01-10 11:42:04 +01:00
Léa Saviot
4bfd77b093 [test] Replace assert by quiz_assert 2019-01-10 11:42:04 +01:00
Léa Saviot
b25c8f4df2 [poincare] Fix store tests 2019-01-10 11:42:04 +01:00
Léa Saviot
892dd2de4f [apps/poincare] Clean some comments 2019-01-10 11:42:04 +01:00
Léa Saviot
300e797324 [poincare/store] Store shallow reduces into the reduced left operand 2019-01-10 11:42:04 +01:00
Léa Saviot
101db272c8 [test/calculation] 1+1->a shoud display 2, not 1+1=2 2019-01-10 11:42:04 +01:00
Léa Saviot
ab4b4da069 [apps/graph] Add assertions 2019-01-10 11:42:04 +01:00
Léa Saviot
f962e92316 [apps/graph] Fix wrong assertion 2019-01-10 11:42:04 +01:00