Python  1.0
Functions
seq Namespace Reference

Evaluating the limit of a sequence. More...

Functions

def seq (k)
 Finds the limit of the sequence: More...
 
def main ()
 

Detailed Description

Evaluating the limit of a sequence.

Author
Paulo Roma
Since
5/11/2012

Function Documentation

◆ main()

def seq.main ( )

References _01d_dec2bin.input.

◆ seq()

def seq.seq (   k)

Finds the limit of the sequence:

\begin{eqnarray*} a_0 &=& \sqrt{k},\ k > 0 \\ a_{n+1} &=& \sqrt{k+a_n}. \end{eqnarray*}

Parameters
ka positive integer.
Returns
the limit of the sequence: \(\frac {1+\sqrt{1+4k}}{2}\)