Changeset: 8b769514fb5e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/8b769514fb5e
Modified Files:
        clients/Tests/MAL-signatures-hge.test
        clients/Tests/MAL-signatures.test
        monetdb5/modules/kernel/mmath.c
Branch: default
Log Message:

Added missing "nextafter(x,y) function " text in the descriptions of the new 
nextafter().
Also replaced double spaces by a single space in the descriptions.


diffs (171 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
@@ -47362,7 +47362,7 @@ mmath
 atan2
 command mmath.atan2(X_0:dbl, X_1:dbl):dbl
 MATHbinary_ATAN2dbl;
-The atan2(x,y) function calculates the arc tangent of the two @variables x and 
y.  It is similar to calculating the arc@tangent of y / x, except that the 
signs of both arguments are @used to determine the quadrant of the result.  The 
value is @returned in radians and is mathematically defined to be between 
@-PI/2 and PI/2 (inclusive).
+The atan2(x,y) function calculates the arc tangent of the two @variables x and 
y. It is similar to calculating the arc@tangent of y / x, except that the signs 
of both arguments are @used to determine the quadrant of the result. The value 
is @returned in radians and is mathematically defined to be between @-PI/2 and 
PI/2 (inclusive).
 mmath
 atan2
 command mmath.atan2(X_0:flt, X_1:flt):flt
@@ -47402,7 +47402,7 @@ mmath
 cosh
 command mmath.cosh(X_0:dbl):dbl
 MATHunary_COSHdbl;
-The cosh() function  returns the hyperbolic cosine of x, which is @defined 
mathematically as (exp(x) + exp(-x)) / 2.
+The cosh() function returns the hyperbolic cosine of x, which is @defined 
mathematically as (exp(x) + exp(-x)) / 2.
 mmath
 cosh
 command mmath.cosh(X_0:flt):flt
@@ -47442,7 +47442,7 @@ mmath
 fabs
 command mmath.fabs(X_0:dbl):dbl
 MATHunary_FABSdbl;
-The fabs(x) function  returns  the  absolute value of the @floating-point 
number x.
+The fabs(x) function returns the absolute value of the floating-point number x.
 mmath
 finite
 command mmath.finite(X_0:dbl):bit
@@ -47522,12 +47522,12 @@ mmath
 nextafter
 command mmath.nextafter(X_0:dbl, X_1:dbl):dbl
 MATHbinary_NEXTAFTERdbl;
-The returns the next representable floating-point value of x in the direction 
of y.
+The nextafter(x,y) function returns the next representable floating-point 
value of x in the direction of y.
 mmath
 nextafter
 command mmath.nextafter(X_0:flt, X_1:flt):flt
 MATHbinary_NEXTAFTERflt;
-The returns the next representable floating-point value of x in the direction 
of y.
+The nextafter(x,y) function returns the next representable floating-point 
value of x in the direction of y.
 mmath
 pi
 command mmath.pi():dbl
@@ -47537,7 +47537,7 @@ mmath
 pow
 command mmath.pow(X_0:dbl, X_1:dbl):dbl
 MATHbinary_POWdbl;
-The pow(x,y) function  returns the value of x raised to the power of y.
+The pow(x,y) function returns the value of x raised to the power of y.
 mmath
 pow
 command mmath.pow(X_0:flt, X_1:flt):flt
@@ -47587,7 +47587,7 @@ mmath
 sinh
 command mmath.sinh(X_0:dbl):dbl
 MATHunary_SINHdbl;
-The sinh() function  returns  the  hyperbolic sine of x, which @is defined 
mathematically as (exp(x) - exp(-x)) / 2.
+The sinh() function returns the hyperbolic sine of x, which is @defined 
mathematically as (exp(x) - exp(-x)) / 2.
 mmath
 sinh
 command mmath.sinh(X_0:flt):flt
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
@@ -35832,7 +35832,7 @@ mmath
 atan2
 command mmath.atan2(X_0:dbl, X_1:dbl):dbl
 MATHbinary_ATAN2dbl;
-The atan2(x,y) function calculates the arc tangent of the two @variables x and 
y.  It is similar to calculating the arc@tangent of y / x, except that the 
signs of both arguments are @used to determine the quadrant of the result.  The 
value is @returned in radians and is mathematically defined to be between 
@-PI/2 and PI/2 (inclusive).
+The atan2(x,y) function calculates the arc tangent of the two @variables x and 
y. It is similar to calculating the arc@tangent of y / x, except that the signs 
of both arguments are @used to determine the quadrant of the result. The value 
is @returned in radians and is mathematically defined to be between @-PI/2 and 
PI/2 (inclusive).
 mmath
 atan2
 command mmath.atan2(X_0:flt, X_1:flt):flt
@@ -35872,7 +35872,7 @@ mmath
 cosh
 command mmath.cosh(X_0:dbl):dbl
 MATHunary_COSHdbl;
-The cosh() function  returns the hyperbolic cosine of x, which is @defined 
mathematically as (exp(x) + exp(-x)) / 2.
+The cosh() function returns the hyperbolic cosine of x, which is @defined 
mathematically as (exp(x) + exp(-x)) / 2.
 mmath
 cosh
 command mmath.cosh(X_0:flt):flt
@@ -35912,7 +35912,7 @@ mmath
 fabs
 command mmath.fabs(X_0:dbl):dbl
 MATHunary_FABSdbl;
-The fabs(x) function  returns  the  absolute value of the @floating-point 
number x.
+The fabs(x) function returns the absolute value of the floating-point number x.
 mmath
 finite
 command mmath.finite(X_0:dbl):bit
@@ -35992,12 +35992,12 @@ mmath
 nextafter
 command mmath.nextafter(X_0:dbl, X_1:dbl):dbl
 MATHbinary_NEXTAFTERdbl;
-The returns the next representable floating-point value of x in the direction 
of y.
+The nextafter(x,y) function returns the next representable floating-point 
value of x in the direction of y.
 mmath
 nextafter
 command mmath.nextafter(X_0:flt, X_1:flt):flt
 MATHbinary_NEXTAFTERflt;
-The returns the next representable floating-point value of x in the direction 
of y.
+The nextafter(x,y) function returns the next representable floating-point 
value of x in the direction of y.
 mmath
 pi
 command mmath.pi():dbl
@@ -36007,7 +36007,7 @@ mmath
 pow
 command mmath.pow(X_0:dbl, X_1:dbl):dbl
 MATHbinary_POWdbl;
-The pow(x,y) function  returns the value of x raised to the power of y.
+The pow(x,y) function returns the value of x raised to the power of y.
 mmath
 pow
 command mmath.pow(X_0:flt, X_1:flt):flt
@@ -36057,7 +36057,7 @@ mmath
 sinh
 command mmath.sinh(X_0:dbl):dbl
 MATHunary_SINHdbl;
-The sinh() function  returns  the  hyperbolic sine of x, which @is defined 
mathematically as (exp(x) - exp(-x)) / 2.
+The sinh() function returns the hyperbolic sine of x, which is @defined 
mathematically as (exp(x) - exp(-x)) / 2.
 mmath
 sinh
 command mmath.sinh(X_0:flt):flt
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
@@ -328,7 +328,7 @@ mel_func mmath_init_funcs[] = {
  command("mmath", "atan", MATHunary_ATANflt, false, "", args(1,2, 
arg("",flt),arg("x",flt))),
  command("mmath", "atan", MATHunary_ATANdbl, false, "The atan(x) function 
calculates the arc tangent of x, that is the value \nwhose tangent is x. The 
value is returned in radians and is mathematically \ndefined to be between 
-PI/2 and PI/2 (inclusive).", args(1,2, arg("",dbl),arg("x",dbl))),
  command("mmath", "atan2", MATHbinary_ATAN2flt, false, "", args(1,3, 
arg("",flt),arg("x",flt),arg("y",flt))),
- command("mmath", "atan2", MATHbinary_ATAN2dbl, false, "The atan2(x,y) 
function calculates the arc tangent of the two \nvariables x and y.  It is 
similar to calculating the arc\ntangent of y / x, except that the signs of both 
arguments are \nused to determine the quadrant of the result.  The value is 
\nreturned in radians and is mathematically defined to be between \n-PI/2 and 
PI/2 (inclusive).", args(1,3, arg("",dbl),arg("x",dbl),arg("y",dbl))),
+ command("mmath", "atan2", MATHbinary_ATAN2dbl, false, "The atan2(x,y) 
function calculates the arc tangent of the two \nvariables x and y. It is 
similar to calculating the arc\ntangent of y / x, except that the signs of both 
arguments are \nused to determine the quadrant of the result. The value is 
\nreturned in radians and is mathematically defined to be between \n-PI/2 and 
PI/2 (inclusive).", args(1,3, arg("",dbl),arg("x",dbl),arg("y",dbl))),
  command("mmath", "cos", MATHunary_COSflt, false, "", args(1,2, 
arg("",flt),arg("x",flt))),
  command("mmath", "cos", MATHunary_COSdbl, false, "The cos(x) function returns 
the cosine of x, where x is given in \nradians. The return value is between -1 
and 1.", args(1,2, arg("",dbl),arg("x",dbl))),
  command("mmath", "sin", MATHunary_SINflt, false, "", args(1,2, 
arg("",flt),arg("x",flt))),
@@ -338,9 +338,9 @@ mel_func mmath_init_funcs[] = {
  command("mmath", "cot", MATHunary_COTflt, false, "", args(1,2, 
arg("",flt),arg("x",flt))),
  command("mmath", "cot", MATHunary_COTdbl, false, "The cot(x) function returns 
the Cotangent of x,\nwhere x is given in radians", args(1,2, 
arg("",dbl),arg("x",dbl))),
  command("mmath", "cosh", MATHunary_COSHflt, false, "", args(1,2, 
arg("",flt),arg("x",flt))),
- command("mmath", "cosh", MATHunary_COSHdbl, false, "The cosh() function  
returns the hyperbolic cosine of x, which is \ndefined mathematically as 
(exp(x) + exp(-x)) / 2.", args(1,2, arg("",dbl),arg("x",dbl))),
+ command("mmath", "cosh", MATHunary_COSHdbl, false, "The cosh() function 
returns the hyperbolic cosine of x, which is \ndefined mathematically as 
(exp(x) + exp(-x)) / 2.", args(1,2, arg("",dbl),arg("x",dbl))),
  command("mmath", "sinh", MATHunary_SINHflt, false, "", args(1,2, 
arg("",flt),arg("x",flt))),
- command("mmath", "sinh", MATHunary_SINHdbl, false, "The sinh() function  
returns  the  hyperbolic sine of x, which \nis defined mathematically as 
(exp(x) - exp(-x)) / 2.", args(1,2, arg("",dbl),arg("x",dbl))),
+ command("mmath", "sinh", MATHunary_SINHdbl, false, "The sinh() function 
returns the hyperbolic sine of x, which is \ndefined mathematically as (exp(x) 
- exp(-x)) / 2.", args(1,2, arg("",dbl),arg("x",dbl))),
  command("mmath", "tanh", MATHunary_TANHflt, false, "", args(1,2, 
arg("",flt),arg("x",flt))),
  command("mmath", "tanh", MATHunary_TANHdbl, false, "The tanh() function 
returns the hyperbolic tangent of x, which is \ndefined mathematically as 
sinh(x) / cosh(x).", args(1,2, arg("",dbl),arg("x",dbl))),
  command("mmath", "radians", MATHunary_RADIANSflt, false, "", args(1,2, 
arg("",flt),arg("x",flt))),
@@ -358,16 +358,16 @@ mel_func mmath_init_funcs[] = {
  command("mmath", "log2", MATHunary_LOG2flt, false, "", args(1,2, 
arg("",flt),arg("x",flt))),
  command("mmath", "log2", MATHunary_LOG2dbl, false, "The log2(x) function 
returns the base-2 logarithm of x.", args(1,2, arg("",dbl),arg("x",dbl))),
  command("mmath", "pow", MATHbinary_POWflt, false, "", args(1,3, 
arg("",flt),arg("x",flt),arg("y",flt))),
- command("mmath", "pow", MATHbinary_POWdbl, false, "The pow(x,y) function  
returns the value of x raised to the power of y.", args(1,3, 
arg("",dbl),arg("x",dbl),arg("y",dbl))),
- command("mmath", "nextafter", MATHbinary_NEXTAFTERflt, false, "The returns 
the next representable floating-point value of x in the direction of y.", 
args(1,3, arg("",flt),arg("x",flt),arg("y",flt))),
- command("mmath", "nextafter", MATHbinary_NEXTAFTERdbl, false, "The returns 
the next representable floating-point value of x in the direction of y.", 
args(1,3, arg("",dbl),arg("x",dbl),arg("y",dbl))),
+ command("mmath", "pow", MATHbinary_POWdbl, false, "The pow(x,y) function 
returns the value of x raised to the power of y.", args(1,3, 
arg("",dbl),arg("x",dbl),arg("y",dbl))),
+ command("mmath", "nextafter", MATHbinary_NEXTAFTERflt, false, "The 
nextafter(x,y) function returns the next representable floating-point value of 
x in the direction of y.", args(1,3, arg("",flt),arg("x",flt),arg("y",flt))),
+ command("mmath", "nextafter", MATHbinary_NEXTAFTERdbl, false, "The 
nextafter(x,y) function returns the next representable floating-point value of 
x in the direction of y.", args(1,3, arg("",dbl),arg("x",dbl),arg("y",dbl))),
  command("mmath", "sqrt", MATHunary_SQRTflt, false, "", args(1,2, 
arg("",flt),arg("y",flt))),
  command("mmath", "sqrt", MATHunary_SQRTdbl, false, "The sqrt(x) function 
returns the non-negative root of x.", args(1,2, arg("",dbl),arg("y",dbl))),
  command("mmath", "cbrt", MATHunary_CBRTflt, false, "", args(1,2, 
arg("",flt),arg("y",flt))),
  command("mmath", "cbrt", MATHunary_CBRTdbl, false, "The cbrt(x) function 
returns the cube root of x.", args(1,2, arg("",dbl),arg("y",dbl))),
  command("mmath", "ceil", MATHunary_CEILflt, false, "", args(1,2, 
arg("",flt),arg("y",flt))),
  command("mmath", "ceil", MATHunary_CEILdbl, false, "The ceil(x) function 
rounds x upwards to the nearest integer.", args(1,2, arg("",dbl),arg("y",dbl))),
- command("mmath", "fabs", MATHunary_FABSdbl, false, "The fabs(x) function  
returns  the  absolute value of the \nfloating-point number x.", args(1,2, 
arg("",dbl),arg("y",dbl))),
+ command("mmath", "fabs", MATHunary_FABSdbl, false, "The fabs(x) function 
returns the absolute value of the floating-point number x.", args(1,2, 
arg("",dbl),arg("y",dbl))),
  command("mmath", "floor", MATHunary_FLOORflt, false, "", args(1,2, 
arg("",flt),arg("y",flt))),
  command("mmath", "floor", MATHunary_FLOORdbl, false, "The floor(x) function 
rounds x downwards to the nearest integer.", args(1,2, 
arg("",dbl),arg("y",dbl))),
  command("mmath", "round", MATHbinary_ROUNDflt, false, "", args(1,3, 
arg("",flt),arg("x",flt),arg("y",int))),
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to