Bug#882367: Included help for function expression entry contains an error

Mirko Scholz scholz at chemie.uni-siegen.de
Tue Nov 21 20:24:09 UTC 2017


Package: qtiplot
Version: 0.9.8.9-16 

QtiPlot contains documentation for the available functions within the muparser package.
It appears when a column value is set (column header context menu "Set column values"
and choosing the log function from the drop down menu).

However, the documentation for the log function is wrong.  At least current versions
of muparser [1] specify it as the natural logarithm, not the decimal logarithm.

I tested the expression log(10) with Buster's version of muparser and it evaluates
to log_e(10)\approx2.3, not log_{10}(10.0)=1.0.

I tried to modify all translations accordingly.

[1] http://beltoforion.de/article.php?a=muparser&hl=en&p=features&s=idDef2#idDef2
-------------- next part --------------
Only in qtiplot-0.9.8.9-working: debian
diff -r -u qtiplot-0.9.8.9/qtiplot/src/scripting/muParserScripting.cpp qtiplot-0.9.8.9-working/qtiplot/src/scripting/muParserScripting.cpp
--- qtiplot-0.9.8.9/qtiplot/src/scripting/muParserScripting.cpp	2012-11-07 17:11:32.000000000 +0100
+++ qtiplot-0.9.8.9-working/qtiplot/src/scripting/muParserScripting.cpp	2017-11-21 20:19:03.616750339 +0100
@@ -80,7 +80,7 @@
   { "invf", 3, NULL, NULL, invf, QObject::tr("invf(x, m, n):\n Inverse F-Distribution with m and n degrees of freedom.") },
   { "invt", 2, NULL, invt, NULL, QObject::tr("invt(x, n):\n Inverse t-distribution with n degrees of freedom.") },
   { "ln", 1, NULL,NULL,NULL, QObject::tr("ln(x):\n Calculate natural logarithm log_e.") },
-  { "log", 1, NULL,NULL,NULL, QObject::tr("log(x):\n Calculate decimal logarithm log_10.") },
+  { "log", 1, NULL,NULL,NULL, QObject::tr("log(x):\n Calculate natural logarithm log_e.") },
   { "log10", 1, NULL,NULL,NULL, QObject::tr("log10(x):\n Calculate decimal logarithm log_10.") },
   { "log2", 1, NULL,NULL,NULL, QObject::tr("log2(x):\n Calculate binary logarithm log_2.") },
   { "min", -1, NULL,NULL,NULL, QObject::tr("min(x,y,...):\n Calculate minimum of all arguments.") },
Only in qtiplot-0.9.8.9-working/qtiplot/src: TAGS
diff -r -u qtiplot-0.9.8.9/qtiplot/translations/qtiplot_cn.ts qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_cn.ts
--- qtiplot-0.9.8.9/qtiplot/translations/qtiplot_cn.ts	2012-11-07 17:11:32.000000000 +0100
+++ qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_cn.ts	2017-11-21 20:59:20.073507619 +0100
@@ -21502,9 +21502,9 @@
     <message>
         <location filename="../src/scripting/muParserScripting.cpp" line="83"/>
         <source>log(x):
- Calculate decimal logarithm log_10.</source>
+ Calculate natural logarithm log_e.</source>
         <translation>log(x):
- ???10??????</translation>
+ ????????e???????</translation>
     </message>
     <message>
         <location filename="../src/scripting/muParserScripting.cpp" line="84"/>
diff -r -u qtiplot-0.9.8.9/qtiplot/translations/qtiplot_cz.ts qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_cz.ts
--- qtiplot-0.9.8.9/qtiplot/translations/qtiplot_cz.ts	2012-11-07 17:11:32.000000000 +0100
+++ qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_cz.ts	2017-11-21 21:01:00.890178064 +0100
@@ -13069,9 +13069,9 @@
     </message>
     <message>
         <source>log(x):
- Calculate decimal logarithm log_10.</source>
+ Calculate natural logarithm log_e.</source>
         <translation>log(x):
- Po??t? desetinn? logaritmus log_10.</translation>
+ Po??t? p?irozen? logaritmus log_e</translation>
     </message>
     <message>
         <source>exp(x):
diff -r -u qtiplot-0.9.8.9/qtiplot/translations/qtiplot_de.ts qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_de.ts
--- qtiplot-0.9.8.9/qtiplot/translations/qtiplot_de.ts	2012-11-07 17:11:32.000000000 +0100
+++ qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_de.ts	2017-11-21 21:04:07.666851735 +0100
@@ -22246,9 +22246,9 @@
     </message>
     <message>
         <source>log(x):
- Calculate decimal logarithm log_10.</source>
+ Calculate natural logarithm log_e.</source>
         <translation>log(x):
- Zehnerlogarithmus log_10.</translation>
+ Nat?rlicher Logarithmus log_e.</translation>
     </message>
     <message>
         <source>log10(x):
diff -r -u qtiplot-0.9.8.9/qtiplot/translations/qtiplot_el.ts qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_el.ts
--- qtiplot-0.9.8.9/qtiplot/translations/qtiplot_el.ts	2012-11-07 17:11:32.000000000 +0100
+++ qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_el.ts	2017-11-21 21:04:44.620186454 +0100
@@ -12944,9 +12944,9 @@
     </message>
     <message>
         <source>log(x):
- Calculate decimal logarithm log_10.</source>
+ Calculate natural logarithm log_e.</source>
         <translation>log(x):
-??????????? ????????? ?????????? log_10.</translation>
+??????????? ??????? ?????????? log_e.</translation>
     </message>
     <message>
         <source>log10(x):
diff -r -u qtiplot-0.9.8.9/qtiplot/translations/qtiplot_es.ts qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_es.ts
--- qtiplot-0.9.8.9/qtiplot/translations/qtiplot_es.ts	2012-11-07 17:11:32.000000000 +0100
+++ qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_es.ts	2017-11-21 21:05:03.360187157 +0100
@@ -18852,7 +18852,7 @@
     </message>
     <message>
         <source>log(x):
- Calculate decimal logarithm log_10.</source>
+ Calculate natural logarithm log_e.</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
diff -r -u qtiplot-0.9.8.9/qtiplot/translations/qtiplot_fr.ts qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_fr.ts
--- qtiplot-0.9.8.9/qtiplot/translations/qtiplot_fr.ts	2012-11-07 17:11:32.000000000 +0100
+++ qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_fr.ts	2017-11-21 21:13:00.356871712 +0100
@@ -13219,9 +13219,9 @@
     </message>
     <message>
         <source>log(x):
- Calculate decimal logarithm log_10.</source>
-        <translation>log10(x) :
- Calcule le logarithme d?cimal log_10.</translation>
+ Calculate natural logarithm log_e.</source>
+        <translation>log(x) :
+ Calcule le logarithme naturel log_e.</translation>
     </message>
     <message>
         <source>log10(x):
diff -r -u qtiplot-0.9.8.9/qtiplot/translations/qtiplot_it.ts qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_it.ts
--- qtiplot-0.9.8.9/qtiplot/translations/qtiplot_it.ts	2012-11-07 17:11:32.000000000 +0100
+++ qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_it.ts	2017-11-21 21:13:53.876873718 +0100
@@ -17979,9 +17979,9 @@
     <message>
         <location filename="../src/scripting/muParserScripting.cpp" line="83"/>
         <source>log(x):
- Calculate decimal logarithm log_10.</source>
+ Calculate natural logarithm log_e.</source>
         <translation>log(x):
- Logaritmo decimale. Logaritmo in base 10. </translation>
+ Logaritmo naturale. Logaritmo in base e.</translation>
     </message>
     <message>
         <location filename="../src/scripting/muParserScripting.cpp" line="84"/>
diff -r -u qtiplot-0.9.8.9/qtiplot/translations/qtiplot_ja.ts qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_ja.ts
--- qtiplot-0.9.8.9/qtiplot/translations/qtiplot_ja.ts	2012-11-07 17:11:32.000000000 +0100
+++ qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_ja.ts	2017-11-21 21:14:11.313541047 +0100
@@ -13232,7 +13232,7 @@
     </message>
     <message>
         <source>log(x):
- Calculate decimal logarithm log_10.</source>
+ Calculate natural logarithm log_e.</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
diff -r -u qtiplot-0.9.8.9/qtiplot/translations/qtiplot_pt.ts qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_pt.ts
--- qtiplot-0.9.8.9/qtiplot/translations/qtiplot_pt.ts	2012-11-07 17:11:32.000000000 +0100
+++ qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_pt.ts	2017-11-21 21:15:18.193543547 +0100
@@ -15196,9 +15196,9 @@
     </message>
     <message>
         <source>log(x):
- Calculate decimal logarithm log_10.</source>
+ Calculate natural logarithm log_e.</source>
         <translation type="obsolete">log(x):?
- Calcula o logar?tmo decimal: log_10.</translation>
+ Calcula o logar?tmo natural: log_e.</translation>
     </message>
     <message>
         <source>log10(x):
@@ -18720,9 +18720,9 @@
     </message>
     <message>
         <source>log(x):
- Calculate decimal logarithm log_10.</source>
+ Calculate natural logarithm log_e.</source>
         <translation type="unfinished">log(x):?
- Calcula o logar?tmo decimal: log_10.</translation>
+ Calcula o logar?tmo natural: log_e.</translation>
     </message>
     <message>
         <source>log10(x):
diff -r -u qtiplot-0.9.8.9/qtiplot/translations/qtiplot_ro.ts qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_ro.ts
--- qtiplot-0.9.8.9/qtiplot/translations/qtiplot_ro.ts	2012-11-07 17:11:32.000000000 +0100
+++ qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_ro.ts	2017-11-21 21:15:41.053544405 +0100
@@ -16702,9 +16702,9 @@
     </message>
     <message>
         <source>log(x):
- Calculate decimal logarithm log_10.</source>
+ Calculate natural logarithm log_e.</source>
         <translation>log(x):
- Calculeaz? logaritmul zecimal log_10.</translation>
+ Calculeaz? logaritmul natural log_e.</translation>
     </message>
     <message>
         <source>log10(x):
diff -r -u qtiplot-0.9.8.9/qtiplot/translations/qtiplot_ru.ts qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_ru.ts
--- qtiplot-0.9.8.9/qtiplot/translations/qtiplot_ru.ts	2012-11-07 17:11:32.000000000 +0100
+++ qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_ru.ts	2017-11-21 21:16:01.396878507 +0100
@@ -13248,9 +13248,9 @@
     </message>
     <message>
         <source>log(x):
- Calculate decimal logarithm log_10.</source>
+ Calculate natural logarithm log_e.</source>
         <translation>log(x):
- ?????????? ????????.</translation>
+ ??????????? ????????.</translation>
     </message>
     <message>
         <source>log10(x):
diff -r -u qtiplot-0.9.8.9/qtiplot/translations/qtiplot_sv.ts qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_sv.ts
--- qtiplot-0.9.8.9/qtiplot/translations/qtiplot_sv.ts	2012-11-07 17:11:32.000000000 +0100
+++ qtiplot-0.9.8.9-working/qtiplot/translations/qtiplot_sv.ts	2017-11-21 21:16:26.976879459 +0100
@@ -19560,9 +19560,9 @@
     </message>
     <message>
         <source>log(x):
- Calculate decimal logarithm log_10.</source>
+ Calculate natural logarithm log_e.</source>
         <translation>log(x):
- Ber?kna 10-logaritmen log_10.</translation>
+ Ber?knar naturliga logaritmen log_e.</translation>
     </message>
     <message>
         <source>log10(x):


More information about the debian-science-maintainers mailing list