diff options
author | mbkma <[email protected]> | 2019-04-29 15:45:04 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-05-07 21:13:40 +0200 |
commit | 19b26a1e2d6e5edb55b37300d326e5a2ec90cdbb (patch) | |
tree | 20dbe20d4022e5a70c78cebca08f15e862e54d15 | |
parent | 9f79e160e37e63c078385a79ecca4c20f507d553 (diff) | |
download | mate-calc-19b26a1e2d6e5edb55b37300d326e5a2ec90cdbb.tar.bz2 mate-calc-19b26a1e2d6e5edb55b37300d326e5a2ec90cdbb.tar.xz |
mp-equation: update values from physical constants to match with tooltip values in math-buttons.c
On branch physical_constants
Your branch is up-to-date with 'origin/physical_constants'.
Changes to be committed:
modified: src/mp-equation.c
-rw-r--r-- | src/mp-equation.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mp-equation.c b/src/mp-equation.c index fd3ea5a..112078d 100644 --- a/src/mp-equation.c +++ b/src/mp-equation.c @@ -54,19 +54,19 @@ get_variable(ParserState *state, const char *name, MPNumber *z) else if (strcmp(name, "μ₀") == 0) mp_set_from_string("0.0000012566370614", 10, z); /* magnetic constant */ else if (strcmp(name, "ε₀") == 0) - mp_set_from_string("0.000000000008854187817", 10, z); /* electric constant */ + mp_set_from_string("0.00000000000885418782", 10, z); /* electric constant */ else if (strcmp(name, "G") == 0) - mp_set_from_string("0.0000000000667310", 10, z); /* Newtonian constant of gravitation */ + mp_set_from_string("0.0000000000667408", 10, z); /* Newtonian constant of gravitation */ else if (strcmp(name, "h") == 0) - mp_set_from_string("0.000000000000000000000000000000000662606876", 10, z); /* Planck constant */ + mp_set_from_string("0.000000000000000000000000000000000662607004", 10, z); /* Planck constant */ else if (strcmp(name, "e") == 0) - mp_set_from_string("0.0000000000000000001602176462", 10, z); /* elementary charge */ + mp_set_from_string("0.00000000000000000016021766208", 10, z); /* elementary charge */ else if (strcmp(name, "mₑ") == 0) - mp_set_from_string("0.000000000000000000000000000000910938188", 10, z); /* electron mass */ + mp_set_from_string("0.000000000000000000000000000000910938356", 10, z); /* electron mass */ else if (strcmp(name, "mₚ") == 0) - mp_set_from_string("0.00000000000000000000000000167262158", 10, z); /* proton mass */ + mp_set_from_string("0.000000000000000000000000001672621898", 10, z); /* proton mass */ else if (strcmp(name, "Nₐ") == 0) - mp_set_from_string("602214199000000000000000", 10, z); /* Avogrado constant */ + mp_set_from_string("602214086000000000000000", 10, z); /* Avogrado constant */ else if (state->options->get_variable) result = state->options->get_variable(name, z, state->options->callback_data); else |