Tag: math
Visualization with Matplotlib
Histogram Histograms are one of the heavily used plots across functions as it gives a very good view of the distribution of data. Line Single line: Several Lines How do we add multiple lines in the same chart? Let us take it a bit further to plot multiple lines in the same chart. Bar Plot…
Continua a leggere →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 →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 →Define a Prime Number function generator
Run program for 100 iterations Run program for 1000 iterations Run program for 10000 iterations Run program for 100000 iterations Run program for 1000000 iterations
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 →an essential tool for mathematics
I believe the blackboard is an essential tool for mathematics. Usually, to solve (or find) a problem, you have to make many incorrect guesses or other mistakes first. Writing on a blackboard is easily edited, which is useful in the process of shaping one’s own thoughts in the process of solving a problem. On paper,…
Continua a leggere →