shipunov (version 1.17.1)

Phyllotaxis: Plant phyllotaxis

Description

Outputs the plant phyllotaxis formula or angle of divergence

Usage

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

Value

Number or character vector of length one.

Arguments

n

non-negative integer

angle

if TRUE, output angle of divergence

x

non-negative integer

Author

Alexey Shipunov

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
sapply(1:10, Fibonacci)
sapply(1:10, Phyllotaxis)
sapply(1:10, Phyllotaxis, angle=TRUE)

Run the code above in your browser using DataLab