File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
lib/node_modules/@stdlib/math/base/special/tribonaccif Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -168,19 +168,19 @@ for ( i = 0; i < 31; i++ ) {
168168### Usage
169169
170170``` c
171- #include " stdlib/math/base/special/tribonacci .h"
171+ #include " stdlib/math/base/special/tribonaccif .h"
172172```
173173
174174#### stdlib_base_tribonaccif( n )
175175
176176Computes the nth [ Tribonacci number] [ tribonacci-number ] [ single-precision floating-point number] [ ieee754 ] .
177177
178178``` c
179- float out = stdlib_base_tribonaccif( 0 );
180- // returns 0
179+ float out = stdlib_base_tribonaccif( 0f );
180+ // returns 0f
181181
182- out = stdlib_base_tribonaccif( 1 );
183- // returns 0
182+ out = stdlib_base_tribonaccif( 1f );
183+ // returns 0f
184184```
185185
186186The function accepts the following arguments:
@@ -220,7 +220,7 @@ int main( void ) {
220220
221221 for ( i = 0; i < 31; i++ ) {
222222 v = stdlib_base_tribonaccif( i );
223- printf( "tribonacci (%d) = %f\n", i, v );
223+ printf( "tribonaccif (%d) = %f\n", i, v );
224224 }
225225}
226226```
Original file line number Diff line number Diff line change @@ -26,6 +26,6 @@ int main( void ) {
2626
2727 for ( i = 0 ; i < 31 ; i ++ ) {
2828 v = stdlib_base_tribonaccif ( i );
29- printf ( "tribonacci (%d) = %f\n" , i , v );
29+ printf ( "tribonaccif (%d) = %f\n" , i , v );
3030 }
3131}
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ static const int32_t tribonaccif_value[ 31 ] = {
6060* @return output value
6161*
6262* @example
63- * float out = stdlib_base_tribonaccif( 1 );
64- * // returns 0
63+ * float out = stdlib_base_tribonaccif( 1f );
64+ * // returns 0f
6565*/
6666float stdlib_base_tribonaccif ( const int32_t n ) {
6767 if ( n < 0 || n > STDLIB_CONSTANT_FLOAT32_MAX_SAFE_NTH_TRIBONACCI ) {
You can’t perform that action at this time.
0 commit comments