Commit Graph

7342 Commits

Author SHA1 Message Date
Léa Saviot
57aada49ec [apps/probability] Code cleaning 2019-01-10 11:42:04 +01:00
Léa Saviot
2cb921d501 [apps] Clean comment 2019-01-10 11:42:04 +01:00
Léa Saviot
155688540f [apps/curve_view] Clean grid unit algorithm 2019-01-10 11:42:04 +01:00
Léa Saviot
d3dd644e0d [apps/curve_view] Draw graduations event if step << x 2019-01-10 11:42:04 +01:00
Léa Saviot
4353d80b26 [apps/probability] Increase Normal law values (draw centered reduced) 2019-01-10 11:42:04 +01:00
Léa Saviot
c9a0afc950 [apps/probability] Clean code spaces in NormalLaw 2019-01-10 11:42:04 +01:00
Léa Saviot
ee974c0d34 [apps/probability] Factorize Normal law xMin and xMax 2019-01-10 11:42:04 +01:00
Léa Saviot
97db53007a [apps] Fix wrong assertion that should be an escape case 2019-01-10 11:42:04 +01:00
Émilie Feral
6021579ae3 [regression] Clean warnings 2019-01-10 11:42:04 +01:00
Émilie Feral
2ea39fcaa4 [poincare] Addition: shallowBeautify sorts its children in decreasing
order: 1+x+x^2 --> x^2+x+1
2019-01-10 11:42:04 +01:00
Émilie Feral
fe8825df35 [shared] PoincareHelpers: update the complexFormat (force it to
Cartesian with complex input).
2019-01-10 11:42:04 +01:00
Émilie Feral
3fd737ab72 [poincare] Change name: sApproximationEncounterComplex -->
sApproximationEncounteredComplex
2019-01-10 11:42:04 +01:00
Émilie Feral
b8826b1cf4 [poincare] (-1)^(p/q) is not reduced the same way according to the
complex format
2019-01-10 11:42:04 +01:00
Émilie Feral
6506588244 [poincare] Complex: do not set the SetEncounterComplex flag when
building an undefined complex
2019-01-10 11:42:04 +01:00
Émilie Feral
ab555888aa [solver] Clean and add tests on non-real equations 2019-01-10 11:42:04 +01:00
Émilie Feral
d66d71a152 [solver] Fix tests on unreal equations 2019-01-10 11:42:04 +01:00
Émilie Feral
8ac623be08 [solver] ListController: display a pop up when an equation is 'unreal' 2019-01-10 11:42:04 +01:00
Émilie Feral
64d6450728 [solver] Handle unreal equations and equations whose solutions are
unreal
2019-01-10 11:42:04 +01:00
Émilie Feral
fc6793233f [solver] I18n: add message 'unreal equation' 2019-01-10 11:42:04 +01:00
Émilie Feral
61d58b5dfa [shared] SimplifyAndApproximate is used with already updated
ComplexFormat
2019-01-10 11:42:04 +01:00
Émilie Feral
786cefc3d4 [calculation] No special case for unreal calculation, it is handled in
simplication and approximation routines.
2019-01-10 11:42:04 +01:00
Émilie Feral
ae2de436c2 [poincare] Add tests on ComplexFormat == Real 2019-01-10 11:42:04 +01:00
Émilie Feral
c6177a8edc [poincare] Power: fix bug: if a unreal node appears, it needs to be
bubbled up
2019-01-10 11:42:04 +01:00
Émilie Feral
e265b0319c [poincare] Power: avoid infinite loop of reduction
2^(1/2+a) --> 2^(1/2)*2^a --> 2^(1/2+a)-->...
2019-01-10 11:42:04 +01:00
Émilie Feral
2268817738 [poincare] The reduction routine is unterrupted if one of the expression
leaves is unreal or undefined. If any leaf is unreal the result is
unreal (unreal > undefined)
2019-01-10 11:42:04 +01:00
Émilie Feral
2052ee43ae [apps][poincare] An expression is undefined if it is of type 'unreal' or
'undefined'
2019-01-10 11:42:04 +01:00
Émilie Feral
4e345b7050 [poincare] Unreal: approximating unreal set the sApproximationEncounterComplex to true 2019-01-10 11:42:04 +01:00
Émilie Feral
05ef7008dc [solver] Fix bug: when the number of solutions is infinite, do not try
to find the solution layouts
2019-01-10 11:42:04 +01:00
Émilie Feral
87391d65ee [poincare] Missing header in sign_function 2019-01-10 11:42:04 +01:00
Émilie Feral
cbd3eeb3f6 [poincare] Turn i into unreal when complexFormat is Real 2019-01-10 11:42:04 +01:00
Émilie Feral
ecf3f2ea0f [poincare] Create a a flag on Expression that is set when the
approximation encouters a complex value

All approximation methods take the complex format into account.
2019-01-10 11:42:04 +01:00
Émilie Feral
c3ad0e027c [poincare] Create class Unreal 2019-01-10 11:42:04 +01:00
Émilie Feral
5e434a4c33 [poincare] Get rid of useless arguments in shallowReduce 2019-01-10 11:42:04 +01:00
Émilie Feral
26e2e9be0d [poincare] Add complex format as an argument of simplification 2019-01-10 11:42:04 +01:00
Émilie Feral
1f247b731d [poincare] Discard useless parameters of sign and isReal methods 2019-01-10 11:42:04 +01:00
Émilie Feral
3de8901c22 [poincare] Use reduce instead of setting the
sSimplificationHasBeenInterrupted flag and deepReducing
2019-01-10 11:42:04 +01:00
Émilie Feral
aa80710f4d [solver] Take into account the complexFormat Real 2019-01-10 11:42:04 +01:00
Émilie Feral
6fd3a155df [calculation] Take into account the complex format 'real' 2019-01-10 11:42:04 +01:00
Émilie Feral
b6ec84f6a9 [calculation] Clean and add tests on CalculationStore 2019-01-10 11:42:04 +01:00
Émilie Feral
ab13d137fd [settings] Update PreferencesController with new ComplexFormat::Real 2019-01-10 11:42:04 +01:00
Émilie Feral
b83ee26636 [settings] Add a message I18n: Real 2019-01-10 11:42:04 +01:00
Émilie Feral
8bc1a7be05 [poincare] Preferences: add a ComplexFormat::Real 2019-01-10 11:42:04 +01:00
Émilie Feral
6d32c1866e [poincare] Division: force division by 0 to be equal to NAN
Before x/0 = (Inf, NAN) which leads to arctan(1/0) = Pi/2.
2019-01-10 11:42:03 +01:00
Émilie Feral
5c98ff15cd [poincare] Clean AbsoluteValue and ComplexArgument 2019-01-10 11:42:03 +01:00
Émilie Feral
9f42d5c7ec [poincare] Trigonometry: arctan(1/x) = sign(x)Pi/2-arctan(x) only when x
!= 0
2019-01-10 11:42:03 +01:00
Émilie Feral
c0424089f7 [poincare] Clean Power 2019-01-10 11:42:03 +01:00
Émilie Feral
5e79949ba7 [poincare] Clean Trigonometry 2019-01-10 11:42:03 +01:00
Émilie Feral
f00f639bed [poincare] Interrupt simplification of when too many nodes where
generated while bubbling up ComplexCartesian. Retry with another
ReductionTarget
2019-01-10 11:42:03 +01:00
Émilie Feral
759aee2345 [poincare] Discard wrong optimization. NAryExpression children are
sorted but Power(ComplexCartesian) is after ComplexCartesian in the
simplification order. ComplexCartesian are not ensure to be last ones if
some children are not real.
2019-01-10 11:42:03 +01:00
Émilie Feral
df2f6e3b6e [poincare] Fix tests with complex cas 2019-01-10 11:42:03 +01:00