Commit Graph

1952 Commits

Author SHA1 Message Date
Émilie Feral
82c4936e04 Coding style: remove unecessary 'virtual' keyword when 'override' is
present 1/2
2020-04-09 11:36:51 +02:00
Quentin
e383c3429f [Fix] Conflicts 2020-04-08 15:05:17 +02:00
Quentin
26d68c8039 [Update] Upstream 2020-04-08 12:48:09 +02:00
Jean-Baptiste Boric
2f61b823d0 [poincare] Remove statically-allocated buffers 2020-04-08 10:09:47 +02:00
Romain Goyet
35d446353f [escher] Avoid long switches on Left/Up/Right/Down 2020-04-08 09:56:33 +02:00
Quentin
e35b9c5fb1 Merge branch 'omega-dev' of github.com:Omega-Numworks/Omega into omega-dev 2020-04-01 00:17:56 +02:00
Quentin
9ecdaeeb88 Merge branch 'omega-hotfix' into omega-dev 2020-04-01 00:17:37 +02:00
Quentin
735294b91b [Git] Fix conflicts 2020-04-01 00:17:17 +02:00
Léa Saviot
620ef3f570 [poincare] Use SymbolAbstract::hasSameNameAs 2020-03-31 13:42:42 +02:00
Léa Saviot
94fb5815f9 [poincare] Fix replaceReplaceableSymbols for parametered expressions
Scenario: ans*int(0,x,0,0)->x then cos(x) crashed because replaceReplaceableSymbols
would not care if it was replacing parameters in a parametered
expression
2020-03-31 13:42:42 +02:00
David
a7c62aa176 [Feature] Made Compact Display the Default (#317)
* Made Compact Display the Default

* Made Input Field Slightly Smaller

* Removed Comma

* Fixed bug with x->a(x)

* Update escher/include/escher/expression_field.h

* Update escher/include/escher/expression_field.h
2020-03-28 17:09:00 +01:00
Quentin
0beec8f506 Merge branch 'omega-hotfix' into omega-dev 2020-03-27 21:17:09 +01:00
Quentin
6c3261b356 [Git] Fix conflicts 2020-03-27 21:16:47 +01:00
Émilie Feral
f84b3dc5c1 [poincare] Power approximation: avoid approximating a power to 0 when
one of the real/imaginary part was not null
2020-03-24 16:22:43 +01:00
Quentin Guidée
a25bb04122 Fix conflicts 2020-03-17 21:22:31 +01:00
Quentin Guidée
b1d558617a Merge branch 'omega-hotfix' into omega-dev 2020-03-17 21:03:52 +01:00
Quentin Guidée
bfe2fc1a04 Merge remote-tracking branch 'upstream/master' into omega-hotfix 2020-03-17 20:59:23 +01:00
Émilie Feral
d222d13156 [poincare] CHange name PowerNode::tryComputeRealRootOfRationalPow -->
PowerNode::computeNotPrincipalRealRootOfRationalPow
2020-03-16 11:36:37 +01:00
Léa Saviot
576d1dcd6b [poincare/power] Rename and comment computeRealRootOfRationalPow 2020-03-12 14:41:50 +01:00
Émilie Feral
a2e9d8efd6 [poincare] Improve trigonometry functions and power functions
approximations. We neglect the real or imaginary parts when it is
neglectable compared to the input.
2020-03-12 14:41:50 +01:00
Émilie Feral
12a5f5499c [poincare] Handle real root finding in Power and NthRoot in order to
remove beautifying x^(p/q) -> root(x,q)^p. This triggered precision
loss!
2020-03-12 14:41:50 +01:00
Émilie Feral
515405a5df [poincare] In Power::approximation and SquareRoot::approximation, the
real (or imaginary) part negligence should depend on the argument value
relatively to some other values (norms of the parameters) and not of its
value absolutely!
2020-03-12 14:41:50 +01:00
Quentin Guidée
bd5bb45344 Merge branch 'omega-hotfix' into omega-dev 2020-03-11 19:12:47 +01:00
Quentin Guidée
d50511f1be [Fix] Fix conflicts 2020-03-11 19:12:20 +01:00
Ruben Dashyan
ed98218e7b [poincare/grid_layout] Explicit the making of a protected member as public 2020-03-10 10:33:30 +01:00
Ruben Dashyan
aa4a33d849 [poincare/layout_node] Remove unused method 2020-03-10 10:33:30 +01:00
Quentin Guidée
d94021677e Merge branch 'omega-hotfix' into omega-dev 2020-03-06 16:13:02 +01:00
Quentin Guidée
bd6f30fda5 Merge remote-tracking branch 'upstream/master' into omega-hotfix 2020-03-06 16:06:39 +01:00
Léa Saviot
1dc6e77049 [poincare/matrix] Forbid nested matrices
Scenario: in calculation,
1/matrix(matrix(matrix(matrix(... matrix(1) ... )))) gave kind of a
weird result. These kind of computations also broke the fuzzer.
2020-03-04 16:21:25 +01:00
redgl0w
dfe51df321 Updated the month definition 2020-03-04 10:08:44 +01:00
redgl0w
035a0377bd Updated the month definition 2020-03-04 10:08:44 +01:00
Neven Sajko
aae5e49c01 Remove useless uses of const for return types
An integer or float value can not be assigned to, so there is no point
in qualifying it as const.
2020-03-02 09:48:23 +01:00
Quentin Guidée
1d048ade53 [Reformat] Clean all spaces 2020-03-01 00:19:51 +01:00
Charlotte THOMAS
67a1000ddc [Feature] New Constants & Units
* Added some constant
Move mass on a new submenu of Physics
Added universal translation for a future easter-egg

* Added lenght constant menu
Added radiuses and distances submenu to lenght
Added Faraday Constant

* Constant
Added 16 usual pKa couple values

* Added some constant
( stefan-boltzmann, water triple point, wien, atmospheric pressure, vacuum impedance, bohr magneton, nuclear magneton, muon mass, atomic mass unit, bohr radius )
Missing hungarian translation

* Planck update
added some plancks units ( fondamentals units and energy/power units )

* Changed the Physics constants submenu
Here's the new pattern

1. Fundamental Constants => for the 5 fundamental constants
2. Electromagnetism => 3 constants remain in this submenu
3. Nuclear and Atomic Constnats => bohr magneton & nuclear magneton, bohr radius and particle mass submenu
4. Thermodynamics => this section is mostly unchanged
5. Gravitation => same as before
6. Speed => 2 submenus one for sound speeds and one for escape velocities
7. Mass => the mass of earth/sun/moon
8. Length => 2 submenus, one for radius of earth/sun/moon and one for distances earth-moon and earth-sun
9. Planck Units => The natural system of units

* Units
Added steradian, lumen and lux to the avaliables units
Warning steradian is a new fundamental units ( definition is nullptr )

* Remove debugging and includes

* Added 15 constants

* Update apps/toolbox.fr.i18n

Co-Authored-By: Quentin <quentin.guidee@gmail.com>

* Update apps/toolbox.fr.i18n

Co-Authored-By: Quentin <quentin.guidee@gmail.com>

* Corrected french and english

* Added hu translation
Correct de translation
added combining double acute accent

* q

* Revert "q"

This reverts commit 959786ae504ddf106249a3f799929471eecb8708.

Co-authored-by: Quentin <quentin.guidee@gmail.com>
2020-02-29 23:50:49 +01:00
Quentin Guidée
02a5826789 Merge branch 'master' of https://github.com/numworks/epsilon into numworks-master 2020-02-28 19:50:43 +01:00
Ruben Dashyan
a72e4d43ae [poincare/expression] Short-circuit brentMinimum and brentRoot 2020-02-28 18:08:01 +01:00
Neven Sajko
4da9f34993 [poincare] Fix checking for special tree identifier value
Unsigned types are never negative, so the existant check does not make
sense. Check correctly using the newly introduced
TreeNode::IsValidIdentifier method.
2020-02-28 09:18:14 +01:00
0b101
97b756bc54 Fixed error 2020-02-17 08:56:25 -06:00
0b101
978c3e28e9 Added more units 2020-02-17 08:54:43 -06:00
0b101
0a07a82a96 Added Compact Result Display 2020-02-16 12:47:29 -06:00
Quentin Guidée
ab8f731515 Fixed some conflicts 2020-02-12 17:42:58 +01:00
Léa Saviot
4d8099e273 [poincare/matrix] shallowReduce checks there are no unit children 2020-02-12 15:13:26 +01:00
Ruben Dashyan
9526d1d591 [poincare/unit] Lighten Dimension constructor 2020-02-12 15:13:26 +01:00
Ruben Dashyan
1e3b8581e5 [poincare/unit] Lighten Representative constructor 2020-02-12 15:13:26 +01:00
Émilie Feral
a211b6efb6 [poincare] Change unit name: hour -> h 2020-02-12 15:13:25 +01:00
Ruben Dashyan
e39ad9d923 [poincare/expression_node] Fix ExpresssionNode::Type ordering
A Multiplication whose children are all real or ComplexCartesian are
multiplied to form a single ComplexCartesian. That step of shallowReduce
assumed that the last child is a ComplexCartesian. Since a Unit is now
considered as real, the previous assumption can be maintained be
reordering the ExpresssionNode::Type.
2020-02-12 15:13:25 +01:00
Léa Saviot
94d71634b6 [poincare/unit_convert] In shallowReduce, fix units testing on the right
First reduce the right member by replacing the units to make sure there
is a unit, then reduce without replacing to keep "complex units" such as
L, N, ...
2020-02-12 15:13:25 +01:00
Ruben Dashyan
cc280373d0 [poincare] Reducing an Expression which hasUnit in its children returns Undefined in general 2020-02-12 15:13:25 +01:00
Léa Saviot
d5b07f1f90 [poincare] Implemment getUnit 2020-02-12 15:13:25 +01:00
Léa Saviot
94334169f0 [poincare/expr] Remove beautifiedExpHasUnits and reducedExpIsUnitsOnly 2020-02-12 15:13:25 +01:00