Mathematical induction…

There are many techniques to prove various statements. The simplest ones are direct proof, where you show that if the first statement (P) is true then the second statement (Q) is also true; the proof by contrapositive, where you assume that the negation of the second statement (~Q) is true and show that this forces…

Continua a leggere →

Using AnimatPlot for Animating Graphs & Plots

Data Visualization helps in understanding different patterns, associations, visual insights from the data, etc. It is important because it uncovers the mystery behind the data tables in form of charts, graphs, and plots. There are tons of python libraries that help in visualizing the data like Matplotlib, Seaborn, etc. AnimatPlot is an open-source python library…

Continua a leggere →

Insieme di Mandelbrot…

L’insieme di Mandelbrot o frattale di Mandelbrot è l’insieme dei numeri complessi per i quali la successione definita da: è limitata. Nonostante la semplicità della definizione, l’insieme ha una forma complessa il cui contorno è un frattale. Qui, la funzione per la costruzione della matrice da diagrammare: Di seguito, invece, la routine per verificare la…

Continua a leggere →

The square root of 2…

The square root of 2 (approximately 1.4142) is a positive real number that, when multiplied by itself, equals the number 2.  There are a number of algorithms for approximating √2 as a ratio of integers or as a decimal. The most common algorithm for this, which is used as a basis in many computers and calculators, is the Babylonian method for computing square roots, which is…

Continua a leggere →

gnuplot for dummies…

At first glance, it might seem that Gnuplot is more difficult to use for plotting than MS Excel. But it only seems that way, the entry threshold is a little higher (you can’t use a mouse to click it, you need to read the documentation here), but in practice, it comes out much easier and…

Continua a leggere →

The Fibonacci sequence…

The Fibonacci sequence is one of the most well known mathematical sequences and is the most basic example of recurrence relations. Each number in the sequence consists of the sum of the previous two numbers and the starting two numbers are and . It goes something like this: We will go through a few different…

Continua a leggere →

1-D Linear Convection

The 1-D Linear Convection equation is the simplest, most basic model that can be used to learn something about CFD. With given initial conditions (understood as a wave), the equation represents the propagation of that initial wave with speed , without change of shape. Let the initial condition be . Then the exact solution of…

Continua a leggere →

Taking advantage of symmetry…

Estimate: Solution: The problem cannot be evaluated by the usual techniques of integration; that is to say, the integrand does not have an antiderivative. The problem can be handled if we happen to notice thet the integrand is symmetric about the point . To show this is so, let It suffices to show that Note:…

Continua a leggere →

A spiral of first 10k prime numbers…

A prime number is a natural number greater than 1 that is not a product of two smaller natural numbers. Euclid proved the infinity of primes by contradiction. Assume there are a finite number, n , of primes , the largest being ; Consider the number that is the product of these, plus one: By…

Continua a leggere →