Skip to content

Commit c44169e

Browse files
Planeshifteranandkaranubc
authored andcommitted
fix: correct variable name typo in hornerDescending function
--- 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: passed - 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 ed9ac44 commit c44169e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ int main( void ) {
2424

2525
float v;
2626
int i;
27-
for ( i = 0; i < 1; i++ ) {
27+
for ( i = 0; i < 10; i++ ) {
2828
v = stdlib_base_roundf( x[ i ] );
2929
printf( "roundf(%f) = %f\n", x[ i ], v );
3030
}

lib/node_modules/@stdlib/math/base/tools/evalrational-compile-c/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface Options {
3232
dtype?: 'double' | 'float';
3333

3434
/**
35-
* Function name. Default: `'evalpoly'`.
35+
* Function name. Default: `'evalrational'`.
3636
*/
3737
name?: string;
3838
}

lib/node_modules/@stdlib/math/base/tools/evalrational-compile-c/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function hornerDescending( x ) {
154154
}
155155
str += '{{dtype_suffix}}';
156156
for ( i = m-1; i >= 0; i-- ) {
157-
str += ' + (ix * ';
157+
str += ' + (x * ';
158158
if ( i > 0 ) {
159159
str += '(';
160160
}

0 commit comments

Comments
 (0)