# NOT RUN {
GeometricSequence(4, .8, .6)
# [1] 0.8000 0.4800 0.2880 0.1728
GeometricSequence(5, 2, 3)
# [1] 2 6 18 54 162
# }
# NOT RUN {
GeometricSequence(0, -1, -2)
# Error: length > 0 is not TRUE
# }
Run the code above in your browser using DataLab