geomser
geomser(
@start ? ## required
@end ? ## required
@factor ? ## required
@maxcount 0
) -> llll/null
note
geomser
is a built-in function in the bell programming language and is not unique or exclusive to bellplay~.
Returns a geomethric series, understood as a list where the ratio between adjacent elements is constant. If one of the arguments is set to null
, its value is automatically inferred from the other arguments.
Arguments
@start
[llll/null] (required)@end
[llll/null] (required)@factor
[llll/null] (required)@maxcount
[llll] (default:0
)
Output
Geometric series [llll/null]
warning
geomser
will return null
without raising an error if required arguments are not provided.
Usage
geomser(1, null, 2, 5) ## Returns 1 2 4 8 16