Skip to content

Commit 8dc25bb

Browse files
committed
docs: fix case conditions and clean-up
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: passed - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: passed - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 848f226 commit 8dc25bb

File tree

4 files changed

+4
-100
lines changed

4 files changed

+4
-100
lines changed

lib/node_modules/@stdlib/math/base/special/gammasgn/README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,12 @@ limitations under the License.
2626

2727
The sign of the [gamma-function][@stdlib/math/base/special/gamma] is defined as
2828

29-
<!-- <equation class="equation" label="eq:gamma_sign_function" align="center" raw="\operatorname{gammasgn} ( x ) = \begin{cases} 1 & \textrm{if}\ \Gamma > 1 \\ -1 & \textrm{if}\ \Gamma < 1 \\ 0 & \textrm{otherwise}\ \end{cases}" alt="Sign of the gamma function"> -->
29+
<!-- <equation class="equation" label="eq:gamma_sign_function" align="center" raw="\operatorname{gammasgn} ( x ) = \begin{cases} 1 & \textrm{if}\ \Gamma > 0 \\ -1 & \textrm{if}\ \Gamma < 0 \\ 0 & \textrm{otherwise}\ \end{cases}" alt="Sign of the gamma function"> -->
3030

3131
```math
32-
\mathop{\mathrm{gammasgn}} ( x ) = \begin{cases} 1 & \textrm{if}\ \Gamma > 1 \\ -1 & \textrm{if}\ \Gamma < 1 \\ 0 & \textrm{otherwise}\ \end{cases}
32+
\mathop{\mathrm{gammasgn}} ( x ) = \begin{cases} 1 & \textrm{if}\ \Gamma > 0 \\ -1 & \textrm{if}\ \Gamma < 0 \\ 0 & \textrm{otherwise}\ \end{cases}
3333
```
3434

35-
<!-- <div class="equation" align="center" data-raw-text="\operatorname{gammasgn} ( x ) = \begin{cases} 1 &amp; \textrm{if}\ \Gamma &gt; 1 \\ -1 &amp; \textrm{if}\ \Gamma &lt; 1 \\ 0 &amp; \textrm{otherwise}\ \end{cases}" data-equation="eq:gamma_sign_function">
36-
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@50b141156b147529227e2eb4247eda81c781dec9/lib/node_modules/@stdlib/math/base/special/gammasgn/docs/img/equation_gamma_sign_function.svg" alt="Sign of the gamma function">
37-
<br>
38-
</div> -->
39-
4035
<!-- </equation> -->
4136

4237
The [gamma function][@stdlib/math/base/special/gamma] can be computed as the product of `gammasgn(x)` and `exp(gammaln(x))`.
@@ -185,7 +180,7 @@ int main( void ) {
185180
for ( i = 0; i < 100; i++ ) {
186181
x = ( (double)rand() / (double)RAND_MAX ) * 100.0;
187182
v = stdlib_base_gammasgn( x );
188-
printf( "gammasgn%lf = %lf\n", x, v );
183+
printf( "gammasgn(%lf) = %lf\n", x, v );
189184
}
190185
}
191186
```

lib/node_modules/@stdlib/math/base/special/gammasgn/docs/img/equation_gamma_sign_function.svg

Lines changed: 0 additions & 90 deletions
This file was deleted.

lib/node_modules/@stdlib/math/base/special/gammasgn/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ int main( void ) {
2828
for ( i = 0; i < 100; i++ ) {
2929
x = ( (double)rand() / (double)RAND_MAX ) * 100.0;
3030
v = stdlib_base_gammasgn( x );
31-
printf( "gammasgn%lf = %lf\n", x, v );
31+
printf( "gammasgn(%lf) = %lf\n", x, v );
3232
}
3333
}

lib/node_modules/@stdlib/math/base/special/gammasgn/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"stdmath",
5757
"mathematics",
5858
"math",
59-
"special function",
6059
"special",
6160
"function",
6261
"gamma",

0 commit comments

Comments
 (0)