Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
For further information please visit:
https://www.mpfr.org/
http://www.multiprecision.org/mpc
|
|
|
|
|
|
This adds unit tooltips to the const menu which appear when hovering over
a specific constant with the mouse.
Changes to be committed:
modified: math-buttons.c
|
|
This adds some fundamental physical constants:
- Velocity of Light "c₀", 299,792,458 m/s
- Magnetic constant, "μ₀", 1.2566370614×10⁻ N/A²
- Electric constant, "ε₀", 8.85418782×10⁻¹² s⁴A²/m³kg
- Newtonian constant of gravitation, "G", 6.67408×10⁻¹¹ m³/(s²kg)
- Planck constant, "h", 6.62607004×10⁻³⁴ m²kg/s
- Elementary charge, "e", 1.6021766208(98)×10⁻¹⁹ C
- Electron mass, "mₑ", 9.10938356×10⁻³¹ kg
- Proton mass, "mₚ", 1.672621898(21)×10⁻²⁷ kg
- Avogrado constant, "Nₐ", 6.02214086×10²³ mol⁻¹
They are taken from https://en.wikipedia.org/wiki/Physical_constant#Universal_constants
To insert them one would enter the corresponding symbol or use the gui.
They are set to a MPNumber from string.
|
|
.ui files are combined into a binary resource bundle, and
they are marked as compressed, so they will be automatically
uncompressed when the resource is used.
REF https://developer.gnome.org/gio/stable/GResource.html
|
|
Fixes cppcheck warning:
[src/math-buttons.c:513] -> [src/math-buttons.c:514]: (warning) Identical inner 'return' condition is always true.
|
|
Fixes cppcheck warning:
[src/math-buttons.c:391]: (error) Shifting signed 64-bit value by 63 bits is undefined behaviour
|
|
|
|
|
|
|
|
|
|
Also, change them in all translations with the help of find and sed.
I am not entirely sure if this is correct for RTL languages like arabic,
but it does look similar to the other tooltips :)
Commands used:
find . -name "*.po" -print | xargs sed -i '{N
s/msgid "Shift Left"\n\(.*\)"/msgid "Shift Left [<<]"\n\1 [<<]"/g}'
find . -name "*.po" -print | xargs sed -i '{N
s/msgid "Shift Right"\n\(.*\)"/msgid "Shift Right [>>]"\n\1 [>>]"/g}'
|
|
|
|
|
|
|
|
|
|
with non obvious meanings.
http://git.gnome.org/browse/gcalctool/commit/?h=gnome-2-32&id=91f3718756d752738cc0b50adbef39f23e68b223
|
|
|
|
This patch also changes the shift operation itself to use MPNumber for the
multiplier too. Previously a signed int was used, which led to "interesting" results
for bigger numbers. This was hidden because the GUI did not allow shifts with
more than 15 places.
Signed-off-by: Stefan Tauner <[email protected]>
|
|
|
|
|