capped_fibonacci_seq: Fibonacci sequence up to a specified maximum number

View source: R/capped_fibonacci_seq.R

capped_fibonacci_seqR Documentation

Fibonacci sequence up to a specified maximum number

Description

Generates the Fibonacci sequence up to a specified maximum number

Usage

capped_fibonacci_seq(max_number)

Arguments

max_number

The maximum number up to which the sequence should be generated

Value

A vector containing the Fibonacci sequence

Author(s)

Tasos Grivas <tasos@openriskcalculator.com>

References

https://en.wikipedia.org/wiki/Fibonacci_number

Examples


fibonacci_seq = capped_fibonacci_seq(max_number = 6000)

Trading documentation built on Feb. 13, 2024, 3 a.m.