Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add math/base/special/lucasf #3348

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: update function descriptions
  • Loading branch information
aayush0325 committed Dec 17, 2024
commit d4a0d537ab960b996cebdf2e4385d8a7dd4e3290
10 changes: 5 additions & 5 deletions lib/node_modules/@stdlib/math/base/special/lucasf/test/test.js
Original file line number Diff line number Diff line change
@@ -44,24 +44,24 @@ tape( 'if provided a negative number, the function returns `NaN`', function test
var v;
var i;

t.strictEqual( isnanf( lucasf( -3.14 ) ), true, 'returns NaN' );
t.strictEqual( isnanf( lucasf( -3.14 ) ), true, 'returns expected value' );

for ( i = -1; i > -100; i-- ) {
v = lucasf( i );
t.strictEqual( isnanf( v ), true, 'returns NaN when provided ' + i );
t.strictEqual( isnanf( v ), true, 'returns expected value when provided ' + i );
}
t.end();
});

tape( 'if provided positive infinity, the function returns `NaN`', function test( t ) {
var v = lucasf( PINF );
t.strictEqual( isnanf( v ), true, 'returns NaN when provided +infinity' );
t.strictEqual( isnanf( v ), true, 'returns expected value when provided +infinity' );
t.end();
});

tape( 'if provided `NaN`, the function returns `NaN`', function test( t ) {
var v = lucasf( NaN );
t.strictEqual( isnanf( v ), true, 'returns NaN when provided a NaN' );
t.strictEqual( isnanf( v ), true, 'returns expected value when provided a NaN' );
t.end();
});

@@ -86,7 +86,7 @@ tape( 'if provided nonnegative integers greater than `34`, the function returns
var v;
for ( i = 35; i < 500; i++ ) {
v = lucasf( i );
t.strictEqual( isnanf( v ), true, 'returns NaN when provided ' + i );
t.strictEqual( isnanf( v ), true, 'returns expected value when provided ' + i );
}
t.end();
});
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ tape( 'if provided a negative number, the function returns `NaN`', opts, functio

for ( i = -1; i > -100; i-- ) {
v = lucasf( i );
t.strictEqual( isnanf( v ), true, 'returns NaN when provided ' + i );
t.strictEqual( isnanf( v ), true, 'returns expected value when provided ' + i );
}
t.end();
});
@@ -73,7 +73,7 @@ tape( 'if provided nonnegative integers less than `34`, the function returns `Na
var v;
for ( i = 35; i < 500; i++ ) {
v = lucasf( i );
t.strictEqual( isnanf( v ), true, 'returns NaN when provided ' + i );
t.strictEqual( isnanf( v ), true, 'returns expected value when provided ' + i );
}
t.end();
});
Loading
Oops, something went wrong.