Meta
Blogroll
Navigation
Useful
Monthly Archives: February 2012
NumPy Project Euler Problem 9
var dzone_url = “http://ivanidris.net/wordpress/index.php/2012/02/27/numpy-project-euler-problem-9″;
var dzone_title = “NumPy Project Euler Problem 9″;
Project Euler Problem 9 is a tough one. After reading the Pythagorean Triple Wikipedia page, I implemented a NumPy solution with Euclid’s Formula.
1. Create m and n arrays
The Euclid’s Formula [...]
NumPy Periodic Dips
NumPy Strategies 0.1.5
The stock market has periodic dips to the downside and sometimes to the upside, but those have a different name. Our Fantasy Hedge Fund needs to rebalance its portfolio 5 times a year (this is all part of [...]
NumPy Project Euler Problem 8
Project Euler Problem 8 requires a lot of string manipulation. Still we have some opportunities to practice our NumPy skills.
1. Calculate the product of the 5 element array
First we need to compute the product of an array with 5 elements. [...]
Power Law Discovery
Numpy Strategies 0.1.4
Our Product Owner (disclaimer fictional character) has come back from a long vacation. During his holiday he found some time to google “get rich quick schemes”. This led to a new thrilling User Story.
User Story
I want to [...]
NumPy Project Euler Problem 7
Project Euler Problem 7 is about prime numbers. So I implemented a Sieve of Eratosthenes with NumPy. I am not following the algorithm to the letter, but I believe that the result is the same.
1. Create a list of consecutive [...]
Misbehavior of Markets Book Review
In these turbulent economy we seem to be victims of the financial markets. Benoit Mandelbrot, famous mathematician and inventor of fractal geometry, joined forces with Richard Hudson, to write a book about financial theory. “The (Mis)behavior of Markets” falls in [...]
Posted in books
Leave a comment
NumPy Project Euler Problem 6
Project Euler Problem 6 is perfect to demonstrate the power of NumPy. No loops are required and only a few lines of code.
1. Create an array with the first 100 natural numbers
First we will create a NumPy array of the [...]
Linear Algebra Book review
I had to read “Linear Algebra and Its Applications” by David Lay for the Linear Algebra 1 class in my first semester in University. So this is a gentle introduction to Linear Algebra. The book doesn’t assume a lot of [...]
Posted in books
Leave a comment
NumPy Project Euler Problem 5
Project Euler Problem 5is one of those problems that seem hard, but turn out to be trivial after you think about them. In this case it is very important to use the information given to you in the problem. This [...]
