From 84be7d27ec7ebae634f2fd829d76e26f1a36aa2a Mon Sep 17 00:00:00 2001 From: GUNJ JOSHI Date: Wed, 17 Jul 2024 08:58:13 +0530 Subject: [PATCH] docs: update notes section --- .../@stdlib/math/base/special/cospi/lib/main.js | 17 +++++++---------- .../@stdlib/math/base/special/cospi/src/main.c | 16 +++++++--------- 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/cospi/lib/main.js b/lib/node_modules/@stdlib/math/base/special/cospi/lib/main.js index 10a6e8ea3dc..cff1a979fd8 100644 --- a/lib/node_modules/@stdlib/math/base/special/cospi/lib/main.js +++ b/lib/node_modules/@stdlib/math/base/special/cospi/lib/main.js @@ -18,16 +18,6 @@ 'use strict'; -/* -* Notes: -* => cos(-x) = cos(x) -* => sin(-x) = -sin(x) -* => cos(π/2) = 0 -* => cos(0) = 1 -* => cos(π) = -1 -*/ - - // MODULES // var isnan = require( '@stdlib/math/base/assert/is-nan' ); @@ -50,6 +40,13 @@ var MAX_INTEGER_P1 = MAX_INTEGER + 1; /** * Computes the value of `cos(πx)`. * +* ## Notes +* +* - `sin(-x) = -sin(x)` +* - `sin(+n) = +0`, where `n` is a positive integer +* - `sin(-n) = -sin(+n) = -0`, where `n` is a positive integer +* - `cos(-x) = cos(x)` +* * @param {number} x - input value * @returns {number} function value * diff --git a/lib/node_modules/@stdlib/math/base/special/cospi/src/main.c b/lib/node_modules/@stdlib/math/base/special/cospi/src/main.c index 11427a85eac..7ab756aefbc 100644 --- a/lib/node_modules/@stdlib/math/base/special/cospi/src/main.c +++ b/lib/node_modules/@stdlib/math/base/special/cospi/src/main.c @@ -16,15 +16,6 @@ * limitations under the License. */ -/* -* Notes: -* => cos(-x) = cos(x) -* => sin(-x) = -sin(x) -* => cos(π/2) = 0 -* => cos(0) = 1 -* => cos(π) = -1 -*/ - #include "stdlib/math/base/special/cospi.h" #include "stdlib/math/base/assert/is_nan.h" #include "stdlib/math/base/assert/is_infinite.h" @@ -41,6 +32,13 @@ static const double MAX_INTEGER_P1 = STDLIB_CONSTANT_FLOAT64_MAX_SAFE_INTEGER + /** * Computes the value of `cos(πx)`. * +* ## Notes +* +* - `sin(-x) = -sin(x)` +* - `sin(+n) = +0`, where `n` is a positive integer +* - `sin(-n) = -sin(+n) = -0`, where `n` is a positive integer +* - `cos(-x) = cos(x)` +* * @param x input value * @return function value *