In Python as you know there’s the option of plotting 3D graphs, so why not fully exploiting such possibilities? In this example I will show a sort of an irregular spiral figure. import matplotlib as mplimport numpy as npimport matplotlib.pyplot as pltmpl.rcParams[‘legend.fontsize’] = 10fig = plt.figure()ax = fig.gca(projection=’3d’)theta = np.linspace(-4 * np.pi, 4 * np.pi, […]
Author: giuricrocodile
Multiple Days Stock Predictor
The last stock predictor could only predict the following day based on the last n days. Now it can predict any number of days ahead. Since when you try to predict more days ahead some may overlap, this plot is made by taking the mean of all the overlapping days. Hence, it’s not very accurate, […]
An Application Of Burnside’s Lemma
Burnside’s Lemma is a very nice tool I had the occasion to use in the Mathematical Olympiads to solve some Combinatorics problems. It says that, given a finite group acting on a set , and, for each : let be the elements of invariant by . Then the number of orbits is equal to: May […]
Seven Brief Lessons On Physics
‘Seven Brief Lessons On Physics’, by Carlo Rovelli, is a divulgation physics book that introduces people to the nicest and most modern problems of physics. As you can imagine, it is divided into seven parts and a preface. The peculiarity of this book is that not only it covers a lot of contemporary theories and […]
Chess Game #2
I played this game with the black pieces. It was not a perfect game, but it really shows how disregarding an attack can result in problems. 1. e4 g6 2. d4 Bg7 3. Nf3 d5 4. e5 c5 5. c3 Nc6 6. Bb5 Bg4 7. h3 Bxf3 8. Qxf3 cxd4 9. cxd4 a6 Instead of […]
Jason Richardson
Jason Richardson is probably the most precise guitar virtuoso I’ve ever seen. His alternated picking technique and sweep picking are clean and perfect. His signature guitar is the ‘Ernie Ball Music Man Jason Richardson Artist Series Cutlass’, and has 7 strings. I’ve first got to know him by his featuring solos in Polyphia’s ‘Aviator’ and […]
Very Elegant Image Color Segmentation
Let’s start with this suggestive image of a tree with pink flowers on it. What I want to do is simplifying it to see its main colors. How can I do it? Well, here some unsupervised learning techniques may come in handy. Clustering the pixels of the image, which are no other than points in […]
A Constructive Combinatorics Proof
There is a positive integer in each square of a rectangular table. In each move, you may double each number in a row or subtract 1 from each number in a column. Can you arrive to a situation where there are only zeros on the table? How Should These Kind Of Problems Be Approached In […]
Zero To One
I recently started to be interested in business and start-ups, so I decided to read Peter Thiel’s ‘Zero To One’. This book talks about how to create innovation and let your start-up grow. Thiel says that copying something that already existed brings the world from 1 to n, meaning that by doing so you can […]
Recursive Solution To A Nice Problem
There is a frog jumping on lily pads labeled with natural numbers. It’s on the 2015th lily pad and can either go one step forward or backwards, except if it at any time is on a lily pad divisible by 6 it has to go forward. How many 15-steps paths are possible? The problem is […]