Changeset: 9a08d3b72c07 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9a08d3b72c07
Modified Files:
clients/Tests/MAL-signatures-hge.test
clients/Tests/MAL-signatures.test
monetdb5/modules/kernel/mmath.c
Branch: Dec2025
Log Message:
correct description of log(base,x) function.
diffs (50 lines):
diff --git a/clients/Tests/MAL-signatures-hge.test
b/clients/Tests/MAL-signatures-hge.test
--- a/clients/Tests/MAL-signatures-hge.test
+++ b/clients/Tests/MAL-signatures-hge.test
@@ -48267,12 +48267,12 @@ mmath
log2arg
command mmath.log2arg(X_0:dbl, X_1:dbl):dbl
MATHbinary_LOGdbl
-The log(x) function returns the logarithm of x in the given base.
+The log(base,x) function returns the logarithm of x in the given base.
mmath
log2arg
command mmath.log2arg(X_0:flt, X_1:flt):flt
MATHbinary_LOGflt
-The log(x) function returns the logarithm of x in the given base.
+(empty)
mmath
nextafter
command mmath.nextafter(X_0:dbl, X_1:dbl):dbl
diff --git a/clients/Tests/MAL-signatures.test
b/clients/Tests/MAL-signatures.test
--- a/clients/Tests/MAL-signatures.test
+++ b/clients/Tests/MAL-signatures.test
@@ -36747,12 +36747,12 @@ mmath
log2arg
command mmath.log2arg(X_0:dbl, X_1:dbl):dbl
MATHbinary_LOGdbl
-The log(x) function returns the logarithm of x in the given base.
+The log(base,x) function returns the logarithm of x in the given base.
mmath
log2arg
command mmath.log2arg(X_0:flt, X_1:flt):flt
MATHbinary_LOGflt
-The log(x) function returns the logarithm of x in the given base.
+(empty)
mmath
nextafter
command mmath.nextafter(X_0:dbl, X_1:dbl):dbl
diff --git a/monetdb5/modules/kernel/mmath.c b/monetdb5/modules/kernel/mmath.c
--- a/monetdb5/modules/kernel/mmath.c
+++ b/monetdb5/modules/kernel/mmath.c
@@ -362,8 +362,8 @@ static mel_func mmath_init_funcs[] = {
command("mmath", "exp", MATHunary_EXPdbl, false, "The exp(x) function returns
the value of e (the base of \nnatural logarithms) raised to the power of x.",
args(1,2, arg("",dbl),arg("x",dbl))),
command("mmath", "log", MATHunary_LOGflt, false, "", args(1,2,
arg("",flt),arg("x",flt))),
command("mmath", "log", MATHunary_LOGdbl, false, "The log(x) function returns
the natural logarithm of x.", args(1,2, arg("",dbl),arg("x",dbl))),
- command("mmath", "log2arg", MATHbinary_LOGflt, false, "The log(x) function
returns the logarithm of x in the given base.", args(1,3,
arg("",flt),arg("x",flt),arg("base",flt))),
- command("mmath", "log2arg", MATHbinary_LOGdbl, false, "The log(x) function
returns the logarithm of x in the given base.", args(1,3,
arg("",dbl),arg("x",dbl),arg("base",dbl))),
+ command("mmath", "log2arg", MATHbinary_LOGflt, false, "", args(1,3,
arg("",flt),arg("x",flt),arg("base",flt))),
+ command("mmath", "log2arg", MATHbinary_LOGdbl, false, "The log(base,x)
function returns the logarithm of x in the given base.", args(1,3,
arg("",dbl),arg("x",dbl),arg("base",dbl))),
command("mmath", "log10", MATHunary_LOG10flt, false, "", args(1,2,
arg("",flt),arg("x",flt))),
command("mmath", "log10", MATHunary_LOG10dbl, false, "The log10(x) function
returns the base-10 logarithm of x.", args(1,2, arg("",dbl),arg("x",dbl))),
command("mmath", "log2", MATHunary_LOG2flt, false, "", args(1,2,
arg("",flt),arg("x",flt))),
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]