diff --git a/math/base/special/rad2deg/coverage.ndjson b/math/base/special/rad2deg/coverage.ndjson new file mode 100644 index 000000000..1e0f9245b --- /dev/null +++ b/math/base/special/rad2deg/coverage.ndjson @@ -0,0 +1 @@ +[154,154,100,5,5,100,2,2,100,154,154,100,"20f26c2eea154a98d258d455f48f855c2d7133a4","2024-04-05 15:26:41 -0700"] diff --git a/math/base/special/rad2deg/index.html b/math/base/special/rad2deg/index.html new file mode 100644 index 000000000..59143ae21 --- /dev/null +++ b/math/base/special/rad2deg/index.html @@ -0,0 +1,146 @@ + + + + + + Code coverage report for math/base/special/rad2deg/lib + + + + + + + + + +
+
+

All files math/base/special/rad2deg/lib

+
+ +
+ 100% + Statements + 154/154 +
+ + +
+ 100% + Branches + 5/5 +
+ + +
+ 100% + Functions + 2/2 +
+ + +
+ 100% + Lines + 154/154 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
index.js +
+
100%46/46100%1/1100%0/0100%46/46
main.js +
+
100%54/54100%2/2100%1/1100%54/54
native.js +
+
100%54/54100%2/2100%1/1100%54/54
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/math/base/special/rad2deg/index.js.html b/math/base/special/rad2deg/index.js.html new file mode 100644 index 000000000..7858a1760 --- /dev/null +++ b/math/base/special/rad2deg/index.js.html @@ -0,0 +1,223 @@ + + + + + + Code coverage report for math/base/special/rad2deg/lib/index.js + + + + + + + + + +
+
+

All files / math/base/special/rad2deg/lib index.js

+
+ +
+ 100% + Statements + 46/46 +
+ + +
+ 100% + Branches + 1/1 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 46/46 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +471x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2018 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+/**
+* Convert an angle from radians to degrees.
+*
+* @module @stdlib/math/base/special/rad2deg
+*
+* @example
+* var rad2deg = require( '@stdlib/math/base/special/rad2deg' );
+*
+* var d = rad2deg( 3.141592653589793/2.0 );
+* // returns 90.0
+*
+* d = rad2deg( -3.141592653589793/4.0 );
+* // returns -45.0
+*
+* d = rad2deg( NaN );
+* // returns NaN
+*/
+ 
+// MODULES //
+ 
+var rad2deg = require( './main.js' );
+ 
+ 
+// EXPORTS //
+ 
+module.exports = rad2deg;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/math/base/special/rad2deg/main.js.html b/math/base/special/rad2deg/main.js.html new file mode 100644 index 000000000..4950372e5 --- /dev/null +++ b/math/base/special/rad2deg/main.js.html @@ -0,0 +1,247 @@ + + + + + + Code coverage report for math/base/special/rad2deg/lib/main.js + + + + + + + + + +
+
+

All files / math/base/special/rad2deg/lib main.js

+
+ +
+ 100% + Statements + 54/54 +
+ + +
+ 100% + Branches + 2/2 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 54/54 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +551x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +2039x +2039x +2039x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2018 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// VARIABLES //
+ 
+// 180.0 / π
+var CONST_180_DIV_PI = 57.29577951308232;
+ 
+ 
+// MAIN //
+ 
+/**
+* Converts an angle from radians to degrees.
+*
+* @param {number} x - angle in radians
+* @returns {number} angle in degrees
+*
+* @example
+* var d = rad2deg( 3.141592653589793/2.0 );
+* // returns 90.0
+*
+* @example
+* var d = rad2deg( -3.141592653589793/4.0 );
+* // returns -45.0
+*
+* @example
+* var d = rad2deg( NaN );
+* // returns NaN
+*/
+function rad2deg( x ) {
+	return x * CONST_180_DIV_PI;
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = rad2deg;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/math/base/special/rad2deg/native.js.html b/math/base/special/rad2deg/native.js.html new file mode 100644 index 000000000..d3df4d3a9 --- /dev/null +++ b/math/base/special/rad2deg/native.js.html @@ -0,0 +1,247 @@ + + + + + + Code coverage report for math/base/special/rad2deg/lib/native.js + + + + + + + + + +
+
+

All files / math/base/special/rad2deg/lib native.js

+
+ +
+ 100% + Statements + 54/54 +
+ + +
+ 100% + Branches + 2/2 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 54/54 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +551x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +2039x +2039x +2039x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2022 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MODULES //
+ 
+var addon = require( './../src/addon.node' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Converts an angle from radians to degrees.
+*
+* @private
+* @param {number} x - angle in radians
+* @returns {number} angle in degrees
+*
+* @example
+* var d = rad2deg( 3.141592653589793/2.0 );
+* // returns 90.0
+*
+* @example
+* var d = rad2deg( -3.141592653589793/4.0 );
+* // returns -45.0
+*
+* @example
+* var d = rad2deg( NaN );
+* // returns NaN
+*/
+function rad2deg( x ) {
+	return addon( x );
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = rad2deg;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file