shipunov (version 1.5)

Phyllotaxis: Plant phyllotaxis

Description

Outputs the plant phyllotaxis formula or angle of divergence

Usage

Phyllotaxis(n, angle=FALSE)
Fibonacci(x)

Arguments

n

non-negative integer

angle

if TRUE, output angle of divergence

x

non-negative integer

Value

Number or character vector of length one.

Details

'Fibonacci(x)' calculates the n's Fibonacci's number, it is the rare case that is not exercise but really used for work.

'Phyllotaxis(n)' uses 'Fibonacci(x)' to output the phyllotaxis formula (see examples) or (if 'angle=TRUE') the angle of divergence.

Examples

Run this code
# NOT RUN {
sapply(1:10, Fibonacci)
sapply(1:10, Phyllotaxis)
sapply(1:10, Phyllotaxis, angle=TRUE)
# }

Run the code above in your browser using DataLab