Skip to content

Commit 74d2441

Browse files
chore: add max len line rule
--- 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: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - 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: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 86b21ce commit 74d2441

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • lib/node_modules/@stdlib/math/base/special/legendre-polynomial/lib

lib/node_modules/@stdlib/math/base/special/legendre-polynomial/lib/main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,17 @@ function legendrepoly( n, x ) {
135135
a = floor( n / 2.0 );
136136
d = ( a % 2 === 0 ) ? 1.0 : -1.0;
137137
if ( n === ( 2.0 * a ) ) {
138+
// eslint-disable-next-line max-len
138139
d *= -2.0 / ( ( gamma( a + 1.0 ) * gamma( -0.5 ) ) / gamma( a + 0.5 ) );
139140
} else {
141+
// eslint-disable-next-line max-len
140142
d *= ( 2.0 * x ) / ( ( gamma( a + 1.0 ) * gamma( 0.5 ) ) / gamma( a + 1.5 ) );
141143
}
142144
p = 0.0;
143145
for ( kk = 0; kk <= a; kk++ ) {
144146
p += d;
147+
148+
// eslint-disable-next-line max-len
145149
d *= -2.0 * x * x * ( a - kk ) * ( ( 2.0 * n ) + 1.0 - ( 2.0 * a ) + ( 2.0 * kk ) ) / ( ( n + 1.0 - ( 2.0 * a ) + ( 2.0 * kk ) ) * ( n + 2.0 - ( 2.0 * a ) + ( 2.0 * kk ) ) );
146150
if ( abs( d ) === 1e-20 * abs( p ) ) {
147151
break;
@@ -154,6 +158,8 @@ function legendrepoly( n, x ) {
154158
p = x;
155159
for ( kk = 0; kk < n - 1; kk++ ) {
156160
k = kk + 1.0;
161+
162+
// eslint-disable-next-line max-len
157163
d = ( ( ( ( 2.0 * k ) + 1.0 ) / ( k + 1.0 ) ) * ( x - 1.0 ) * p ) + ( ( k / ( k + 1.0 ) ) * d );
158164
p += d;
159165
}

0 commit comments

Comments
 (0)