The Julia Set

Fractals – a subset of Euclidean space with a fractal dimension that strictly exceeds its topological dimension – are one of my fondest topics in mathematics. I have always been fascinated by fractals, and the first piece of code I ever wrote was to create fractals. The Julia set is one of the most beautiful…

Continua a leggere →

playing with pillow… (part 1)

Here, we will discuss about image transformation: geometrical, color, point some image thresholding, image enhancement buy applying filters, editing GIF, drawing on an image, image conversion and modification in bulk and rolling image using PIL.Pillow is a fork of PIL- Python Imaging Library that will support Python 3.x. Installing pillow library: The important class of…

Continua a leggere →

Come ti nascondo le informazioni in un JPEG

Osserviamo che ogni file .jpg, a un editor esadecimale, inizia con una sequenza FFD8 e termina con la sequenza FFD9 Il codice qui indicato “inietta” il messaggio “Hello World” in coda al file image.jpg senza però modificarne la qualità: Ecco come, all’editor esadecimale, appare adesso image.jpg: Dopo la sequenza FFD9 è stata inserita, come si…

Continua a leggere →

Un orologio analogico in PyQT6

Lo scopo del codice è quello di realizzare un orologio analogico in Python, usando le librerie di PyQt6. Iniziamo dal semplice schema realizzato con QT Designer, in cui c’è solo una QLabel (label_clock) che occupa l’intero QWidget. Su tale label stamperemo, ogni secondo, l’orario. Salviamo lo schema (clock.ui) e procediamo ad editare il codice di…

Continua a leggere →

Building Calculator using PyQt6 in Python

In this article we will see how we can create a calculator using PyQt6. A calculator is something used for making mathematical calculations, in particular a small electronic device with a keyboard and a visual display. Below is the how the calculator will looks like GUI implementation steps  Create a label to show the numbers and…

Continua a leggere →

QtFIGLet…

FIGlet è un software libero per creare banner mediante l’utilizzo di semplici caratteri testuali (la cosiddetta ASCII art). Qui se ne propone una semplice variante scritta in Python e PyQt6 usando la libreria PyFiglet. Di seguito se ne riporta lo schema dell’interfaccia grafica e il codice sorgente: Qui, invece, un esempio di come funziona il…

Continua a leggere →

NACA, Python e PyQt5…

I profili alari NACA sono particolari forme di profilo alare studiati dalla National Advisory Committee for Aeronautics (NACA) statunitense. La forma di un profilo alare NACA è descritta mediante la parola “NACA” seguita da un numero. I valori presenti in tale codice numerico possono essere inseriti nelle equazioni per calcolare le proprietà della sezione alare.…

Continua a leggere →

How to Interpolate Data with Scipy

Interpolation may sound like a fancy mathematical exercise, but in many ways, it is much like what machine learning does. Start with a limited set of data points relating multiple variables Interpolate (basically, create a model) Construct a new function that can be used to predict any future or new point from the interpolation So,…

Continua a leggere →