I Made this nice plot for my mother’s birthday (which is today, 4th December) and I thought it would be nice to share it. import numpy as npimport matplotlib.pyplot as pltdef heart_plotter(precision): t = np.linspace(0, 60, precision) X = 1/100*(-t**2 + 40*t + 1200)*np.sin(t/90) Y = 1/100*(-t**2 + 40*t + 1200)*np.cos(t/60) Y_1 = 1/100*(-t**2 + […]
Author: giuricrocodile
A Python Rubik’s Cube Solver: Part 1
Finally, I was able to get my own GitHub account, which you can find at https://github.com/mattiagiuri, and my first repository is one containing my latest project: a Rubik’s cube solver in Python. If you want, you can check it out and have fun with your Rubik’s cube solving tasks. How does it work? First, I […]
Sum Of Powers Of Roots Of Polynomials
Our olympic course professor gave us some exercises, and among these there is one which resolution is particularly instructive. Find the sum of the fifth powers of the roots of: To solve it, we need to write the recursion which is associated to the polynomial, which is: This recursion will give us the sum of […]
Old Problem With Generating Functions
A similar problem to this one is the one that initiated me to the art of using the generating functions, I’ll tell you a version which has less calculations to make. If you roll a complete set of DnD dice, in how many ways can you obtain 13 as sum of their results? Just for […]
A Very Notorious Problem, But In 3D
I’ve already made an article on the 2D version of this problem, if you want to check it out before this one, you can visit https://www.mattiagiuri.com/2020/04/21/a-very-notorious-problem/. Now, the 3D version says: if you have 3 reals x, y, z chosen randomly between 0 and 1, what’s the probability that It’s important to notice that any […]
Lorenz Attractor In Python Graphed
In my school course ‘Python For Physics’ we had to choose among some topics to study and implement in Python, and I and my colleague decided to go for the Lorenz Attractor equations. The Lorenz System is a system of differential equations which generates a very chaotic plot, where chaotic means that little variations may […]
Problem For A Particular Occasion
I proposed this problem in a birthday team competition I wrote, but at the time I asked for its equivalent in 18 dimension. Today I’ll explain it in 3 dimensions, and I want to point out that 3 is the perfect number for today’s occurrence. Now, how many parts of space (finite or infinite) can […]
Using Symmetry
I put this problem in an old team competition I organized. It is not simple, and I asked only for the case where n is even, now I’ll show you the complete version. Let be reals in an interval of lenght 1. Find the maximum value of Now, let’s treat as constants and let be […]
A Problem From Three Days Ago’s Simulation
This problem took me a while to solve because of its calculations, but it’s actually very instructive. It makes you see how few conditions can determine a lot. All of the data is in the figure above, we have to find the area of the rectangle. Now let where alpha is the biggest of the […]
Hearts Equations In Math
In this article, I’ll show you five different equations you can use to plot your own heart. Let’s start with the simplest: I think this is the most classic of the five I’m going to show you. If you prefer one which is a little bit thinner, there is this one: On the other hand, […]