Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ n = fibonacciIndex( 5 );
// returns 5
```

If provided either a non-integer or `F_n <= 1`, the function returns `NaN`.
If provided either a non-integer or `F_n <= 1`, the function returns `NaN`.

```javascript
var n = fibonacciIndex( -1 );
Expand Down Expand Up @@ -156,19 +156,19 @@ for ( i = 3; i < 79; i++ ) {
Computes the [Fibonacci number][fibonacci-number] index.

```c
double out = stdlib_base_fibonacci( 2 );
double out = stdlib_base_fibonacci_index( 2 );
// returns 3

out = stdlib_base_fibonacci( 3 );
out = stdlib_base_fibonacci_index( 3 );
// returns 4
```

The function accepts the following arguments:

- **n**: `[in] double` input value.
- **F**: `[in] double` input value.

```c
double stdlib_base_fibonacci( const double F );
double stdlib_base_fibonacci_index( const double F );
```

</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extern "C" {
/**
* Computes the Fibonacci number index.
*/
double stdlib_base_fibonacci_index( const double x );
double stdlib_base_fibonacci_index( const double F );

#ifdef __cplusplus
}
Expand Down