Chapter 3. Get to Grips with Commonly Used Functions
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
,eig
histogram
andpolyfit
compress
andrandint
We will be discussing these functions through the following recipes:
Summing Fibonacci numbers
Finding prime factors
Finding palindromic numbers
The steady state vector determination
Discovering a power law
Trading periodically on dips
Simulating trading at random
Sieving integers with the Sieve of Eratosthenes