Commit Graph

10376 Commits

Author SHA1 Message Date
Léa Saviot
c4beb5ec63 [apps/solver] Fix x10 display in approximate solutions
Scenario: Solve the equation cos(x) = 10 between -1000 and 1000, the x10
solution was badly displayed.
2020-02-12 15:13:24 +01:00
Léa Saviot
25ef10a0c5 [tests/solver] Add test on solver + user defined symbols 2020-02-12 15:13:24 +01:00
Léa Saviot
470b713226 [test] Fix tests for new SymbolicComputation parameter 2020-02-12 15:13:24 +01:00
Léa Saviot
72259f359c [apps/solver] Fix rowHeight for approximated solutions
User variables rows were too small
2020-02-12 15:13:24 +01:00
Léa Saviot
248e875192 [apps/solver] Always display used variables
Scenario: 3->x, 4->y, equation x+y+c=0 would not display the values of x
and y
2020-02-12 15:13:24 +01:00
Léa Saviot
424ee9fa15 [poincare] Add SymbolicComputation parameter to the reduction context
This way, in solver, we can reduce expression without expanding symbols
2020-02-12 15:13:24 +01:00
Léa Saviot
016a68d469 [apps/solver] Do not select "User variables used" row 2020-02-12 15:13:23 +01:00
Léa Saviot
db0e7f0d8b [apps/solver] Display user variables in the solutions 2020-02-12 15:13:23 +01:00
Léa Saviot
afbca672fd [escher/button_row_controller] Remove unused variable 2020-02-12 15:13:23 +01:00
Léa Saviot
7e7a37bf8e [apps/solver/solutions_controller] Code cleaning 2020-02-12 15:13:23 +01:00
Léa Saviot
0e64e89496 [apps/solver] Do not use symbol context if no solution found
Still replace the functions
2020-02-12 15:13:23 +01:00
Ruben Dashyan
844a28db7b [poincare/parsing/tokenizer] Token::Identifiers may contain Greek letters except pi 2020-02-12 15:13:23 +01:00
Ruben Dashyan
7964a2ae6a [poincare/unit][kandinsky/font] Use Greek capital letter omega as Ohm unit symbol 2020-02-12 15:13:23 +01:00
Ruben Dashyan
3308427dd4 [poincare/unit] Fix micro prefix symbol 2020-02-12 15:13:23 +01:00
Ruben Dashyan
7cfdadd394 [kandinsky/font] Define IndexForReplacementCharacterCodePoint 2020-02-12 15:13:23 +01:00
Ruben Dashyan
dd92450115 [kandinsky/font] Included header is in C language 2020-02-12 15:13:23 +01:00
Ruben Dashyan
009faa1e37 [kandinsky/font] Factor indexForCodePoint default return value 2020-02-12 15:13:23 +01:00
Émilie Feral
ed035ec3f7 [poincare] Unit: h --> hour 2020-02-12 15:13:23 +01:00
Émilie Feral
22bbe932c8 [poincare] Unit: no prefix for tonne unit 2020-02-12 15:13:23 +01:00
Émilie Feral
a78d34293c [app] Toolbox: add the unit menu 2020-02-12 15:13:23 +01:00
Léa Saviot
b29d014695 [escher/text_field] Fix removing of \n in insertTextAtLocation
Scenario: Copy a text with \n (for instance from a script), then paste
it in a script name -> if \n are replaed with \0 instead of just being
removed, there are problems with the extension
2020-02-12 15:13:23 +01:00
Romain Goyet
ad665fba73 [python] Add a simple test 2020-02-12 15:13:23 +01:00
Ruben Dashyan
179ce5d5d5 [ion/unicode/codepoint] Rename is[(Lower|Upper)Case]Letter to isLatin[(Small|Capital)]Letter
to conform with unicode terminology
2020-02-12 15:13:23 +01:00
Ruben Dashyan
575b911da9 [ion/unicode] Split isDigit into isDecimalDigit, isBinaryDigit, isHexadecimalDigit 2020-02-12 15:13:23 +01:00
Ruben Dashyan
d48a882f04 [poincare/parsing/tokenizer] Fix popWhile return value
for handling CodePoints whose char size is larger than one.
2020-02-12 15:13:23 +01:00
Ruben Dashyan
25a5fb1048 [poincare/parsing/tokenizer] popWhile tests 'didPop' condition only once 2020-02-12 15:13:23 +01:00
Ruben Dashyan
622673a0fa [poincare/parsing/tokenizer] Remove unused method 2020-02-12 15:13:23 +01:00
Ruben Dashyan
31c07e0a58 [poincare/parsing/tokenizer] Simplify popIdentifier 2020-02-12 15:13:23 +01:00
Ruben Dashyan
15a9137d14 [poincare/unit] Remove angstrom unit 2020-02-12 15:13:23 +01:00
Ruben Dashyan
09e1c2eb8b [escher/text_input] insertTextAtLocation location parameter not const anymore 2020-02-12 15:13:23 +01:00
Ruben Dashyan
742ee475ea [escher/text_area] Fix typo 2020-02-12 15:13:23 +01:00
Ruben Dashyan
6da74ea3e1 [poincare/unit] Add prefixes for liter 2020-02-12 15:13:23 +01:00
Ruben Dashyan
c66ef8212a [poincare/unit] Do not output units with short-scale prefixes 2020-02-12 15:13:23 +01:00
Ruben Dashyan
ab836c7a01 [poincare/unit] Distinguish prefixability of units at input and output 2020-02-12 15:13:23 +01:00
Ruben Dashyan
b578ed56f8 [poincare/parsing/tokenizer] Avoid using UTF8Helper 2020-02-12 15:13:23 +01:00
Ruben Dashyan
9b0b4e3096 [ion/unicode] Define and use CodePoint const methods
isLowerCaseLetter
isUpperCaseLetter
isLetter
isDigit

Remove similar ones from UTF8Helper and from Poincare::Tokenizer.
2020-02-12 15:13:23 +01:00
Léa Saviot
7665ad6fe0 [apps/graph/graph_controller] Fix interestingRanges step
Scenario
Create an empty f function
Create g(x) = 1/x
Go to the graph
Change f(x) to f(theta) = theta^2 + 3
Go back to the graph -> the axes computation was very long
2020-02-12 15:13:23 +01:00
Léa Saviot
244c7b31eb [ion/web] Fix screenshots 2020-02-12 15:13:23 +01:00
Ruben Dashyan
50f1ee9721 [poincare/multiplication] Fix handling of units with non-integer exponent 2020-02-12 15:13:23 +01:00
Ruben Dashyan
1c15f8fc58 [poincare/multiplication] Avoid useless Expression cloning 2020-02-12 15:13:23 +01:00
Ruben Dashyan
ffe25f3b4a [poincare/multiplication] Avoid beautifying square meters to ha and cube meters to L
by changing the metric for unit product comparisons
2020-02-12 15:13:23 +01:00
Ruben Dashyan
4d7c12987d [poincare/test/simplification] Gather hyperbolic trigonometry tests 2020-02-12 15:13:23 +01:00
Ruben Dashyan
f9e419dcd6 [poincare/expression] defaultDeepReduceChildren does not recompute the number of children 2020-02-12 15:13:23 +01:00
Ruben Dashyan
8f31f56544 [poincare/unit] Fix pressure units 2020-02-12 15:13:23 +01:00
Émilie Feral
855cec527f [poincare] Power: remove rule i^(p/q) -> e^(i*Pi*p/2q).
This is handles in ComplexCartesian class when the simplification target
is the user and it doesn't need to be handled for other simplification
targets (we even prefer the first form).
2020-02-12 15:13:23 +01:00
Émilie Feral
1f02e8e381 [poincare] AbsoluteValue: add rule |x*y| --> |x|*|y| and |x^y| --> |x|^y 2020-02-12 15:13:23 +01:00
Ruben Dashyan
3692c083e2 [poincare/unit] Simplify shallowReduce 2020-02-12 15:13:23 +01:00
Ruben Dashyan
cadc409561 [poincare/unit] Avoid non-necessary cloning in shallowReduce 2020-02-12 15:13:23 +01:00
Ruben Dashyan
2c4160e59c [poincare/unit] Fix shallowReduce
The result had non-reduced child.
2020-02-12 15:13:23 +01:00
Émilie Feral
bbb9e83703 [apps/calculation] Fix and add tests 2020-02-12 15:13:23 +01:00