maths.lucas_series¶
https://en.wikipedia.org/wiki/Lucas_number
Attributes¶
Functions¶
|
Returns the nth lucas number |
|
Returns the nth lucas number |
Module Contents¶
- maths.lucas_series.dynamic_lucas_number(n_th_number: int) int ¶
Returns the nth lucas number >>> dynamic_lucas_number(1) 1 >>> dynamic_lucas_number(20) 15127 >>> dynamic_lucas_number(0) 2 >>> dynamic_lucas_number(25) 167761 >>> dynamic_lucas_number(-1.5) Traceback (most recent call last):
…
TypeError: dynamic_lucas_number accepts only integer arguments.
- maths.lucas_series.recursive_lucas_number(n_th_number: int) int ¶
Returns the nth lucas number >>> recursive_lucas_number(1) 1 >>> recursive_lucas_number(20) 15127 >>> recursive_lucas_number(0) 2 >>> recursive_lucas_number(25) 167761 >>> recursive_lucas_number(-1.5) Traceback (most recent call last):
…
TypeError: recursive_lucas_number accepts only integer arguments.
- maths.lucas_series.n¶