In this chapter, we will cover a number of commonly used functions:
sqrt()
,log()
,arange()
,astype()
, andsum()
ceil()
,modf()
,where()
,ravel()
, andtake()
sort()
andouter()
diff()
,sign()
, andeig()
histogram()
andpolyfit()
compress()
andrandint()
We will be discussing these functions in the following recipes:
Summing Fibonacci numbers
Finding prime factors
Finding palindromic numbers
The steady state vector
Discovering a power law
Trading periodically on dips
Simulating trading at random
Sieving integers with the Sieve of Eratosthenes