Python  1.0
Namespaces | Functions
_01a_fibo.py File Reference

Namespaces

 _01a_fibo
 Fibonacci sequence.
 

Functions

def _01a_fibo.Fibo (n)
 Prints the first n Fibonacci numbers. More...
 
def _01a_fibo.main ()
 
_05a_gcd.main
def main(argv=None)
main function for testing.
Definition: _05a_gcd.py:113
_05a_gcd.gcdr
def gcdr(a, b)
GCD (Greatest Common Divisor) of two integers.
Definition: _05a_gcd.py:26
_01d_dec2bin.main
def main()
Definition: _01d_dec2bin.py:114
_06b_palindromas_mutuas.main
def main()
Definition: _06b_palindromas_mutuas.py:37
_10_factorize2.condense
def condense(lst)
Condenses the list of prime factors of a number, so that each factor appears just once,...
Definition: _10_factorize2.py:187
_06a_palindroma.palindrome
def palindrome(str)
Checks whether a string is a palindrome.
Definition: _06a_palindroma.py:24
_03e_multiply.matMultiply
def matMultiply(m1, m2)
Multiplies two matrices.
Definition: _03e_multiply.py:64
_06a_palindroma.main
def main()
Definition: _06a_palindroma.py:34
_04b_intsqrt.main
def main(argv=None)
Definition: _04b_intsqrt.py:58
_03e_multiply.main
def main()
Definition: _03e_multiply.py:128
_01a_fibo_rec.main
def main()
Definition: _01a_fibo_rec.py:95
_11_ncsub.main
def main(argv=None)
Definition: _11_ncsub.py:70
seq.seq
def seq(k)
Finds the limit of the sequence:
Definition: seq.py:23
validateRoman.reRoman
def reRoman(r)
Validates a roman numeral using regular expressions.
Definition: validateRoman.py:74
_02b_Geometric_Progression.P
def P(n, a, r)
Calculates the sum of the first n terms of a Geometric Progression.
Definition: _02b_Geometric_Progression.py:30
_04c_perfect.is_perfect
def is_perfect(num)
Checks whether a given number is perfect.
Definition: _04c_perfect.py:47
_10_factorize2.toString
def toString(lfactor)
Stringify a condensed list of factors.
Definition: _10_factorize2.py:218
_03a_roman2int_dict.main
def main()
Definition: _03a_roman2int_dict.py:54
_03e_multiply.matMultiply3
def matMultiply3(m1, m2)
Multiplies two matrices.
Definition: _03e_multiply.py:112
_02a_Arithmetic_Progression.Sp
def Sp(n, a1, d)
Calculates the sum of the first n terms of an Arithmetic Progression.
Definition: _02a_Arithmetic_Progression.py:41
_04e_bubble.bubble_sort
def bubble_sort(v)
Sorts a list using bubble sort.
Definition: _04e_bubble.py:33
_10_factorize2.isPrime
def isPrime(n)
Checks if a given integer is prime.
Definition: _10_factorize2.py:75
_08a_emoldura.main
def main()
Main function for testing.
Definition: _08a_emoldura.py:38
trigonometry.main
def main()
Definition: trigonometry.py:43
_03f_interleave.input
input
Definition: _03f_interleave.py:14
_05a_gcd.Usage.__init__
def __init__(self, msg="")
Constructor.
Definition: _05a_gcd.py:92
_02d_interest.main
def main()
Definition: _02d_interest.py:45
_03d_pascal.pascal2
def pascal2(first_level, last_level, center=True)
Creates the pascal triangle between two levels, using the binomial array.
Definition: _03d_pascal.py:275
_04a_prime.isPrime2
def isPrime2(n)
Using list comprehensions creates a list with all divisors of 'n'.
Definition: _04a_prime.py:87
_04d_sieve.factorization
def factorization(x, F)
Return the factors of x, given an array with the smallest number that divides each integer (0,...
Definition: _04d_sieve.py:186
_10_factorize2.translate
def translate
A closure for mapping decimal digits to their utf8 counterparts.
Definition: _10_factorize2.py:64
seq.main
def main()
Definition: seq.py:32
_03c_int2roman.int2roman
def int2roman(num)
Converts an integer number to its roman numeral representation.
Definition: _03c_int2roman.py:30
_03f_intercala_zip.main
def main()
Definition: _03f_intercala_zip.py:54
_01a_fibo_rec.fibo
def fibo(n, p=False)
Generates a Fibonacci number using a recursive algorithm that makes only n recursive calls.
Definition: _01a_fibo_rec.py:41
_02c_int2roman.main
def main()
Definition: _02c_int2roman.py:79
_02a_Arithmetic_Progression.main
def main()
Definition: _02a_Arithmetic_Progression.py:52
_05a_gcd.gcdi
def gcdi(a, b)
GCD (Greatest Common Divisor) of two integers.
Definition: _05a_gcd.py:44
_04a_prime.main
def main(argv=None)
Definition: _04a_prime.py:90
_07_alarme_windows.alarme
def alarme(h, m, fplayer, player, song)
Plays a given song at given time using a given player.
Definition: _07_alarme_windows.py:26
validateRoman.main
def main(argv=None)
Main program.
Definition: validateRoman.py:97
validateRoman
Definition: validateRoman.py:1
_05a_gcd.Usage
Exception class.
Definition: _05a_gcd.py:86
_01a_fibo_list.fibonacci
def fibonacci(num)
Fills a list with Fibonacci numbers.
Definition: _01a_fibo_list.py:17
_06d_anagrama.anagram
def anagram(str1, str2)
Checks whether two words are anagrams.
Definition: _06d_anagrama.py:56
_02_matrix.p
p
Definition: _02_matrix.py:46
_11_ncsub_rec.main
def main()
Definition: _11_ncsub_rec.py:37
_01c_str2int.main
def main()
Definition: _01c_str2int.py:33
_04d_sieve.main
def main(argv=None)
Main program for testing.
Definition: _04d_sieve.py:244
weightedNumGenerator.genWeightedList
def genWeightedList(l, weights)
Method 1 – given a list of of items and a list of probabilities, return a new list that contains int(...
Definition: weightedNumGenerator.py:22
_08b_xis.xis
def xis(n)
Prints an X using asterisks.
Definition: _08b_xis.py:23
_03b_int2roman_dict.main
def main()
Definition: _03b_int2roman_dict.py:39
_07_alarme.main
def main(argv=None)
Main function for testing.
Definition: _07_alarme.py:41
mergeHeap.mergek
def mergek(*lists)
Create a priority queue for merging a set of sorted lists.
Definition: mergeHeap.py:37
_08c_rightTriangle.rightTriangle
def rightTriangle(n, orientation=0)
Return a string representing the right triangle of height n in a given orientation.
Definition: _08c_rightTriangle.py:30
_05d_rsa.modinv2
def modinv2(a, b, c)
Calculates the modular inverse of an integer.
Definition: _05d_rsa.py:81
_04b_intsqrt.isqrt
def isqrt(n)
Python 3.8.
Definition: _04b_intsqrt.py:45
progress_bar
Progress bar.
Definition: progress_bar.py:1
_02e_interest.continuous_interest_rate
def continuous_interest_rate(c, f, n)
Calculates the interest rate of a continuous compounding interest.
Definition: _02e_interest.py:31
seq
Evaluating the limit of a sequence.
Definition: seq.py:1
_06d_anagrama.main
def main()
Definition: _06d_anagrama.py:128
_04d_sieve.getTime
def getTime(dsec)
Return the time in the format: hr:min:sec:msec.
Definition: _04d_sieve.py:236
maxnc.main
def main()
Definition: maxnc.py:64
deeper.deep_compare
def deep_compare(a, b, pointer='/')
Definition: deeper.py:22
_11_ncsub_rec.ncsub
def ncsub(seq, s=0)
Enumerates all non-continuous subsequences for a given sequence.
Definition: _11_ncsub_rec.py:27
_01d_dec2bin.int2bin
def int2bin(n, count=24)
Converts an integer to a binary string representation with an specified number of bits.
Definition: _01d_dec2bin.py:111
_10_factorize.input
input
Definition: _10_factorize.py:26
_03b_int2roman.int2roman
def int2roman(num)
Converts an integer number to its roman numeral representation.
Definition: _03b_int2roman.py:17
mergeHeap.main
def main()
Main program for testing.
Definition: mergeHeap.py:57
_01d_dec2bin.Binary2Denary
def Binary2Denary(bStr)
Converts a binary string to a denary integer.
Definition: _01d_dec2bin.py:63
_10_factorize2.exponent
def exponent(val, type=False)
Return a superscript for the given digits, such as:
Definition: _10_factorize2.py:167
_04d_sieve.arrayF
def arrayF(n)
Prepare an array for factorization.
Definition: _04d_sieve.py:146
_09_hanoi.Hanoi
def Hanoi(n, from_, to_, by_)
Hanoi Tower.
Definition: _09_hanoi.py:35
_05b_cpf.main
def main(argv=None)
Definition: _05b_cpf.py:102
_02a_Arithmetic_Progression.S
def S(n, a1, d)
Calculates the sum of the first n terms of an Arithmetic Progression.
Definition: _02a_Arithmetic_Progression.py:29
_02e_interest.interest_rate
def interest_rate(c, f, n)
Calculates the interest rate of a compounding interest.
Definition: _02e_interest.py:20
_01f_getDigit.main
def main()
Definition: _01f_getDigit.py:20
_01c_str2int.str2int
def str2int(str)
Converts a string with characters from '0' to '9' to an integer.
Definition: _01c_str2int.py:19
_10_factorize.condense
def condense(L)
Condenses the list of prime factors of a number, so that each factor appears just once,...
Definition: _10_factorize.py:98
_01d_dec2bin.dec2hex
def dec2hex(n)
Converts a denary integer to hexadecimal.
Definition: _01d_dec2bin.py:83
_05d_rsa.modinv
def modinv(a, m)
Calculates the modular inverse of an integer.
Definition: _05d_rsa.py:65
_01e_multbin.Product2
def Product2(a, b, base=10)
Definition: _01e_multbin.py:47
_03f_intercala_zip.input
input
Definition: _03f_intercala_zip.py:14
_01f_getDigit.getDigit
def getDigit(num, d)
Gets the n-th digit of an integer, from right to left.
Definition: _01f_getDigit.py:16
deeper.deep_getsizeof
def deep_getsizeof(o, ids)
Definition: deeper.py:95
_02b_Geometric_Progression.Pp
def Pp(n, a, r)
Calculates the sum of the first n terms of a Geometric Progression.
Definition: _02b_Geometric_Progression.py:42
_03c_int2roman.main
def main(argv=None)
Definition: _03c_int2roman.py:66
_04d_sieve.getArray
def getArray(array)
Return the primes corresponding to a given array.
Definition: _04d_sieve.py:225
_03f_interleave.main
def main()
Definition: _03f_interleave.py:32
func3.main
def main(argv=None)
Definition: func3.py:12
validateRoman.raw_input
raw_input
Definition: validateRoman.py:17
_08b_xis_rec.main
def main()
Definition: _08b_xis_rec.py:31
_05a_gcd.Usage.msg
msg
hold the error message.
Definition: _05a_gcd.py:96
_08c_rightTriangle.getAllTriangles
def getAllTriangles(n)
Generates and interleaves all four orientations for printing.
Definition: _08c_rightTriangle.py:50
_01e_multbin.Product
def Product(a, b)
Multiplies two integers by using only the + operation.
Definition: _01e_multbin.py:37
_11_ncsub.nsubs
def nsubs(n)
The number of k-combinations.
Definition: _11_ncsub.py:31
_03d_pascal.exponent
def exponent(val, type=False)
Return a superscript string for the given value.
Definition: _03d_pascal.py:160
_04b_xx_eq_sinx.xx_eq_sinx
def xx_eq_sinx()
Solves the equation .
Definition: _04b_xx_eq_sinx.py:43
_02c_int2roman.int2roman
def int2roman(num)
Converts an integer number to its roman numeral representation.
Definition: _02c_int2roman.py:18
_03f_intercala_zip.intercala
def intercala(*args)
Interleaves a variable number of lists.
Definition: _03f_intercala_zip.py:25
func2.main
def main(argv=None)
Definition: func2.py:12
_03e_multiply.matMultiply2
def matMultiply2(m1, m2)
Multiplies two matrices.
Definition: _03e_multiply.py:97
_02d_interest.interest
def interest(c, n, t)
Calculates the compounding interest and the continuous compounding interest.
Definition: _02d_interest.py:42
_06c_frase_palindroma.isPhrasePalindrome
def isPhrasePalindrome(st)
Checks whether a phrase is a palindrome.
Definition: _06c_frase_palindroma.py:24
mergeHeap.addtoheap
def addtoheap(h, i, it)
Push a tuple(item,index) to a given heap.
Definition: mergeHeap.py:24
trigonometry.atan2d
def atan2d(y, x)
Computes the arc tangent (measured in degrees) of y/x.
Definition: trigonometry.py:27
_05d_rsa.generateKeys
def generateKeys(p, q)
Generates the public and private keys.
Definition: _05d_rsa.py:133
_08a_emoldura.input
input
Definition: _08a_emoldura.py:12
_08a_emoldura.emoldura
def emoldura(l, max_n)
Frames text lines.
Definition: _08a_emoldura.py:29
_04d_sieve.sieve
def sieve(n)
Returns a list with all primes up to n.
Definition: _04d_sieve.py:66
_05c_cnpj.areValidDigits
def areValidDigits(cnpj, dv)
Validates a CNPJ using the verification digits (DV).
Definition: _05c_cnpj.py:83
_05a_gcd.gcdf
def gcdf(x, y)
GCD (Greatest Common Divisor) of two integers.
Definition: _05a_gcd.py:63
maximum
Recursively find the maximum value in a list.
Definition: maximum.py:1
_10_factorize2.factorize
def factorize(n)
Factorizes an integer or long number.
Definition: _10_factorize2.py:129
_03d_pascal_rec.fact
def fact(n)
Factorial of n, non-recursive version.
Definition: _03d_pascal_rec.py:46
_05d_rsa.power_mod_n
def power_mod_n(c, d, n)
Calculates c to the power of d mod n.
Definition: _05d_rsa.py:97
_01a_fibo_rec.fib
def fib(n)
Generates a Fibonacci number using a recursive algorithm that makes only n recursive calls.
Definition: _01a_fibo_rec.py:70
_07_alarme.alarm
def alarm(h, m, fplayer, player, song)
Plays a given song at given time using a given player.
Definition: _07_alarme.py:27
_05a_gcd.Usage.__str__
def __str__(self)
Redefines the printing method.
Definition: _05a_gcd.py:105
_01e_multbin.main
def main(argv=None)
Definition: _01e_multbin.py:58
_03f_interleave.interleave
def interleave(*args)
Interleaves a variable number of lists.
Definition: _03f_interleave.py:23
_04b_xx_eq_sinx.main
def main(argv=None)
Definition: _04b_xx_eq_sinx.py:52
_03a_roman2int.roman2int
def roman2int(roman)
Converts a roman numeral to its decimal representation.
Definition: _03a_roman2int.py:36
_03a_roman2int.main
def main(argv=None)
Definition: _03a_roman2int.py:76
_04e_bubble.main
def main()
Definition: _04e_bubble.py:49
_04a_prime.xrange
xrange
Definition: _04a_prime.py:59
weightedNumGenerator.weightedRandD
def weightedRandD(d)
Using a dictionary.
Definition: weightedNumGenerator.py:90
_10_factorize2.__translate
def __translate()
Map decimal digits to their utf8 subscript or superscript equivalents.
Definition: _10_factorize2.py:42
_10_factorize.main
def main(argv=None)
main function for testing.
Definition: _10_factorize.py:114
func.main
def main(argv=None)
Definition: func.py:13
_02d_interest.continuous_compounding_interest
def continuous_compounding_interest(c, n, r)
Calculates the continuous compounding interest.
Definition: _02d_interest.py:31
_01a_fibo_list.main
def main()
Definition: _01a_fibo_list.py:23
_01a_fibo.main
def main()
Definition: _01a_fibo.py:66
_03d_pascal_rec.pascal
def pascal(n, k)
The binomial coefficient, refered as row n, column k.
Definition: _03d_pascal_rec.py:73
_08b_xis_rec.desenha_xis
def desenha_xis(k)
Desenha um xis de ordem k com deslocamento 0.
Definition: _08b_xis_rec.py:14
_02d_interest.compounding_interest
def compounding_interest(c, n, t)
Calculates the compounding interest.
Definition: _02d_interest.py:20
_10_factorize.factorize_rec
def factorize_rec(n)
Factorizes an integer or long number.
Definition: _10_factorize.py:38
validateRoman.xrange
xrange
Definition: validateRoman.py:16
_04d_sieve.printArray
def printArray(array)
Print the primes corresponding to a given array.
Definition: _04d_sieve.py:201
progress_bar.progress_bar
def progress_bar(value, max, barsize)
Displays a progress bar on the console made of '#'.
Definition: progress_bar.py:21
func4.main
def main(argv=None)
Definition: func4.py:13
maxnc
Maximum of two numbers without conditionals.
Definition: maxnc.py:1
_05d_rsa.main
def main()
Definition: _05d_rsa.py:144
_03a_roman2int.input
input
Definition: _03a_roman2int.py:26
_04a_prime.isPrime
def isPrime(n)
Tests whether an integer is prime.
Definition: _04a_prime.py:67
_11_ncsub.C
def C(n, k)
Calculates the k-combination of an integer.
Definition: _11_ncsub.py:21
_03b_int2roman_dict.int2roman
def int2roman(number)
Converts an integer number to its roman numeral representation.
Definition: _03b_int2roman_dict.py:17
_03d_pascal.pascal
def pascal(first_level, last_level, center=True)
Creates the pascal triangle between two levels.
Definition: _03d_pascal.py:247
weightedNumGenerator.main
def main()
Main program for testing.
Definition: weightedNumGenerator.py:108
_03a_roman2int_dict.roman2int
def roman2int(roman)
Converts a roman numeral to its decimal representation.
Definition: _03a_roman2int_dict.py:18
_05c_cnpj.input
input
Definition: _05c_cnpj.py:72
_04d_sieve.setDebug
def setDebug(stat)
Set debugging on or off.
Definition: _04d_sieve.py:46
_03f_intercala.intercala
def intercala(l1, l2)
Interleaves two lists.
Definition: _03f_intercala.py:19
_04b_intsqrt.intsqrt
def intsqrt(n)
Calculates the integer part of the square root of a long.
Definition: _04b_intsqrt.py:32
_01a_fibo_rec.fib2
def fib2(n, p0, p1)
Generates a Fibonacci number using a recursive algorithm that makes only n recursive calls.
Definition: _01a_fibo_rec.py:85
_10_factorize2.main
def main(argv=None)
main function for testing.
Definition: _10_factorize2.py:231
_01a_fibo.Fibo
def Fibo(n)
Prints the first n Fibonacci numbers.
Definition: _01a_fibo.py:52
_03d_pascal.binomial_expansion
def binomial_expansion(e)
Compute the binomial expansion of .
Definition: _03d_pascal.py:183
maximum.maximum
def maximum(L)
Definition: maximum.py:11
_01b_eqn2.main
def main()
Definition: _01b_eqn2.py:41
deeper.compare
def compare(a, b)
Definition: deeper.py:88
_03d_pascal.binomial_cumulative_distribution
def binomial_cumulative_distribution(p, n, x=None)
Compute the probability of getting at most successes in trials, which is the sum of the first term...
Definition: _03d_pascal.py:96
weightedNumGenerator.weightedRand
def weightedRand(seq)
Return a random element from seq (same of choice from random).
Definition: weightedNumGenerator.py:45
bitarray
_12_perm.perm
def perm(n, i)
The full permutation of list "n" can be solved by picking any element, placing it in the first,...
Definition: _12_perm.py:17
maxnc.maxnc
def maxnc(a, b)
Return the maximum of two numbers.
Definition: maxnc.py:59
_01d_dec2bin.Denary2Binary
def Denary2Binary(num)
Converts denary integer to a binary string.
Definition: _01d_dec2bin.py:41
_05c_cnpj.main
def main(argv=None)
Definition: _05c_cnpj.py:107
_04c_perfect.find_perfect
def find_perfect(n)
Finds the first n perfect numbers.
Definition: _04c_perfect.py:71
_02b_Geometric_Progression.main
def main()
Definition: _02b_Geometric_Progression.py:54
_06c_frase_palindroma.main
def main()
Definition: _06c_frase_palindroma.py:39
_09_hanoi.main
def main(argv=None)
Main function for testing.
Definition: _09_hanoi.py:47
_10_factorize2.charEncode
def charEncode(f)
Encodes a character to utf8 in Python 2.
Definition: _10_factorize2.py:32
_02e_interest.interest
def interest(c, f, n)
Calculates the interest rate of a compounding interest and a continuous compounding interest.
Definition: _02e_interest.py:42
_03d_pascal.getNextRow
def getNextRow(curr_row)
Computes the next row of a Pascal triangle, given the current row.
Definition: _03d_pascal.py:215
_01d_dec2bin.hex2dec
def hex2dec(s)
Converts a string or number to a plain integer.
Definition: _01d_dec2bin.py:100
_05b_cpf.areValidDigits
def areValidDigits(cpf, dv)
Validates a CPF using the verification digits (DV).
Definition: _05b_cpf.py:79
_12_perm2.perm
def perm(n, i)
The full permutation of list "n" can be solved by picking any element, placing it in the first,...
Definition: _12_perm2.py:17
_05a_gcd.lcm
def lcm(x, y)
Least Common Multiple, which returns the smallest number that can be divided by x and y without any r...
Definition: _05a_gcd.py:77
_03d_pascal.binomial_coefficient
def binomial_coefficient(n, m, method=2)
Compute choose or Combination .
Definition: _03d_pascal.py:67
_01d_dec2bin.input
input
Definition: _01d_dec2bin.py:31
_03d_pascal_rec.showpascal
def showpascal(n)
Prints successive rows of Pascal's triangle, from 0 to n.
Definition: _03d_pascal_rec.py:81
_03d_pascal_rec.factr
def factr(n)
Factorial of n, recursive version.
Definition: _03d_pascal_rec.py:31
_03e_multiply.transpose
def transpose(m, pythonicWay=False)
Transpose a given matrix.
Definition: _03e_multiply.py:40
_03f_intercala.main
def main()
Definition: _03f_intercala.py:39
_06d_anagrama.isAnagram
def isAnagram(a, b)
Checks whether two words or phrases are anagrams.
Definition: _06d_anagrama.py:78
_03e_multiply.dotProd
def dotProd(a, b)
Dot product of two vectors.
Definition: _03e_multiply.py:30
_05d_rsa.egcd
def egcd(a, b)
The extended Euclidean algorithm for the Greatest Common Divisor of two integers.
Definition: _05d_rsa.py:43
_08b_xis_rec.desenha_xis_rec
def desenha_xis_rec(k, d)
Desenha xis com 2k+1 linhas e deslocamento d.
Definition: _08b_xis_rec.py:23
_06b_palindromas_mutuas.areMutualPalindromes
def areMutualPalindromes(str1, str2)
Checks whether two strings are mutual palindromes.
Definition: _06b_palindromas_mutuas.py:27
_03b_int2roman.main
def main()
Definition: _03b_int2roman.py:54
weightedNumGenerator.weightedRand2
def weightedRand2(l, weights)
Method 2 – given list of items and a list of probabilities, which sum up to one, for example,...
Definition: weightedNumGenerator.py:68
_06d_anagrama.containsHiddenWord
def containsHiddenWord(hiddenWord, word)
Determines whether the given hidden word can be obtained from the main word, by erasing some of its l...
Definition: _06d_anagrama.py:105
_01a_fibo_rec.fiboDumb
def fiboDumb(n)
This is a naive recursive version.
Definition: _01a_fibo_rec.py:24
_07_alarme_windows.main
def main(argv=None)
Main function for testing.
Definition: _07_alarme_windows.py:41
_10_factorize.factorize
def factorize(n)
Factorizes an integer or long number.
Definition: _10_factorize.py:68
_11_ncsub.ncsub
def ncsub(seq)
Enumerates all non-continuous subsequences for a given sequence.
Definition: _11_ncsub.py:50
_04c_perfect.main
def main()
Main function for testing.
Definition: _04c_perfect.py:105
_03d_pascal.binomial_array
def binomial_array(n)
Compute n lines of the binomial array.
Definition: _03d_pascal.py:46
deeper.x
def x(pointer, reason, extra)
Definition: deeper.py:83
_08b_xis.main
def main()
Definition: _08b_xis.py:32
_03d_pascal_zip.main
def main()
Definition: _03d_pascal_zip.py:52
_02e_interest.main
def main()
Definition: _02e_interest.py:45
_03d_pascal_rec.kfact
def kfact(n, k)
k factorial of n.
Definition: _03d_pascal_rec.py:58
validateRoman.validateRoman
def validateRoman(r)
Validates a roman numeral.
Definition: validateRoman.py:25
_03d_pascal_zip.pascal
def pascal(nlines, line=[1])
A Pascal Triangle generator.
Definition: _03d_pascal_zip.py:46
weightedNumGenerator.genWeightedListD
def genWeightedListD(d)
Using a dictionary, instead of two lists.
Definition: weightedNumGenerator.py:35
_03d_pascal.fmtRow
def fmtRow(last_level, r, pad=True)
Formats a row of the Pascal triangle.
Definition: _03d_pascal.py:232
_01b_eqn2.eqn2
def eqn2(a, b, c)
Solves a second degree equation: .
Definition: _01b_eqn2.py:29
_03d_pascal.main
def main(argv=None)
Main function for testing.
Definition: _03d_pascal.py:309
_04d_sieve.sieve2
def sieve2(n)
Memory efficient version, using bitarray.
Definition: _04d_sieve.py:110
progress_bar.main
def main()
Definition: progress_bar.py:33
_03f_intercala_zip.intercala3
def intercala3(*args)
Interleaves a variable number of lists.
Definition: _03f_intercala_zip.py:43