Commit Graph

7625 Commits

Author SHA1 Message Date
Émilie Feral
f8f4705929 [poincare] AbsoluteValue: fix shallowReduce to reduce abs(0) to 0 2019-01-21 13:40:17 +01:00
Léa Saviot
1b78f03219 [apps/code] Comment the non support for upper cases in script names 2019-01-21 13:39:59 +01:00
Léa Saviot
f392ca8063 [apps/code] More details in NonCompliantName warning 2019-01-21 13:39:59 +01:00
Léa Saviot
1994e716bf [i18n] Change Message name 2019-01-21 13:39:59 +01:00
Léa Saviot
282feac8a1 [apps/code] Do not allow script names starting with a number. 2019-01-21 13:39:59 +01:00
Léa Saviot
2bde26af69 [python/turtle] Specify namespace std when using cos, sin 2019-01-21 13:39:47 +01:00
Léa Saviot
2f9f40f1a7 [python/turtle] Store the heading in degrees with no k_headingOffset
This reduces rouding errors, such as:
setHeading(0)
right(1)
heading() -> gives -1.00...01
2019-01-21 13:39:47 +01:00
Émilie Feral
6948de2ad3 [poincare] ComplexCartesian: fix approximation
The assertions that the real and imaginary parts are real can be false
due to double lack of precision. We escape these cases by returning an
undefined approximation.
2019-01-21 13:39:36 +01:00
Émilie Feral
8f0246b9d6 [build/device] Remove duplicate line in gdb script 2019-01-21 13:39:05 +01:00
Émilie Feral
8cbbd92761 [ion/device] Fix keyboard output GPIO activation 2019-01-21 13:39:05 +01:00
Léa Saviot
15c87dc0b3 [simulator] Comment 3 keyboard events that are not working 2019-01-21 12:10:37 +01:00
Léa Saviot
a6a2baeb01 [simulator] Process more keyboard event, such as ! ? ; 2019-01-21 12:10:37 +01:00
Léa Saviot
caa0795713 [simulator] Coding style 2019-01-21 12:10:37 +01:00
Léa Saviot
5e2ea6ee32 [simulator] Process letter keyboard events 2019-01-21 12:10:37 +01:00
Léa Saviot
d189a60eff [simulator] Fix left parenthesis
Would send a '5' before
2019-01-21 12:10:37 +01:00
Léa Saviot
31866aaaf5 [apps/calculation] Fix display of unreal
For instance ln(-2) in real mode should display "unreal"
2019-01-21 11:59:20 +01:00
Léa Saviot
86f03b800d [poincare] Clean the TrigonometryCheatTable
It caused Travis compilation problems
2019-01-21 11:22:55 +01:00
Léa Saviot
0bf3e678d9 [poincare] Add tests and asserts about sign, such as sign(0)==0 2019-01-21 11:22:55 +01:00
Léa Saviot
614cfe8306 [poincare] Add tests on SignFunction 2019-01-21 11:22:55 +01:00
Léa Saviot
a28f67b3f8 [poincare/sign_function] Do not use signbit
Caused some Travis problems
2019-01-21 11:22:55 +01:00
Léa Saviot
6cc255c07e build: Version 10.0.0 2019-01-11 10:04:47 +01:00
Léa Saviot
54b8d07ee3 [apps/variable_box_controller] Fix layout memoization 2019-01-10 11:42:05 +01:00
Léa Saviot
35cc26b68a [apps/variable_box_controller] Shift memoization after deleting item 2019-01-10 11:42:05 +01:00
Léa Saviot
be3ab70e67 [apps/calculation] Do not display approximation if it is unreal
Fixes: sqrt(-1) in real complex format, then change complex format, it
then displays unreal = undef
2019-01-10 11:42:05 +01:00
Léa Saviot
027148f376 [apps/calculation] Clean comments 2019-01-10 11:42:05 +01:00
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