Do not erase…
Chalkboards are a major part of my life. I couldn’t live without them
Continua a leggere →il blog di Biagio Raucci
Chalkboards are a major part of my life. I couldn’t live without them
Continua a leggere →Math is beautiful, and the software we have at our fingertips represents an invaluable way to explore that beauty. Never before have we been able to visualize and experiment with mathematical objects in such an accessible way. In this short tutorial I would like to break down the steps required to plot a function of…
Continua a leggere →The Gauss–Legendre algorithm is an algorithm to compute the digits of . It is notable for being rapidly convergent, with only 25 iterations producing 45 million correct digits of . It repeatedly replaces two numbers (a e b, say) by their arithmetic and geometric means, in order to find their arithmetic-geometric mean. The algorithm is…
Continua a leggere →Python is an object-oriented programming language. The key notion is that of an object. An object consists of two things: data and functions (called methods) that work with that data. As an example, strings in Python are objects. The data of the string object is the actual characters that make up that string. The methods…
Continua a leggere →A doublet alone does not give so much information about how it can be used to represent a practical flow pattern in aerodynamics. But let’s use our superposition powers: our doublet in a uniform flow turns out to be a very interesting flow pattern. Let’s first define a uniform horizontal flow. Now, we can calculate…
Continua a leggere →Before we do the Python code, let’s talk about the heat equation and finite-difference method. Heat equation is basically a partial differential equation, it is If we want to solve it in 2D (Cartesian), we can write the heat equation above like this: where u is the quantity that we want to know, t is…
Continua a leggere →Think about the Source & Sink again, and now imagine that you are looking at this flow pattern from very far away. The streamlines that are between the source and the sink will be very short, from this vantage point. And the other streamlines will start looking like two groups of circles, tangent at the…
Continua a leggere →Starting from what is written here, we will try to modularize our code using function definitions. This will make things easier to manage. We start by importing the libraries that we will be using in our code: the NumPy array library, the Matplotlib plotting library and the mathematical functions in the math module. To visualize…
Continua a leggere →L’idea è di scrivere un codice per risolvere l’equazione differenziale dell’oscillatore armonico generica, implementando i metodi di : Eulero, Eulero-Cromer e Verlet. Gli schemi di integrazione sono: Eulero: Eulero-Cromer: Verlet: dove con indichiamo il passo temporale e con indichiamo l’accelerazione, o la forza diviso la massa, a cui è sottoposto il nostro sistema. Nel nostro…
Continua a leggere →