| Name | Description | Size | Visibility | ||
|---|---|---|---|---|---|
|
The script draws a surface z=f(x,y) in axonometry with removal of hidden lines. Requires fillquad.py and fastgraph.py
|
537 Bytes | Public |
|
||
|
Lo script risolve un problema di urto unidimensionale. I dati richiesti sono le masse e le velocità iniziali di due oggetti. Vengono calcolate le velocità finali, le energie cinetiche totali iniziali e finali e la variazione di energia cinetica relativa. Il grado di elasticità dell’urto può essere selezionato mediante il coefficiente di restituzione.
|
573 Bytes | Public |
|
||
|
The script solves a one-dimensional impact problem. The input data are the masses and the initial velocities of two objects. The final velocities, the initial and final total kinetic energies and the relative energy variation are calculated. The degree of elasticity of the impact can be selected by means of the return coefficient.
|
564 Bytes | Public |
|
||
|
The script draws a different embroidery depending on the value of n passed as a parameter. Prime numbers provide more complex structures. Numbers that have 2 as a divisor have less complexity and a smaller periodicity. The values of n must be between 1 and 255.
|
227 Bytes | Public |
|
||
|
Script che simula l’espansione libera di un gas perfetto e costruisce in tempo reale la distribuzione delle molecole fra il lato sinistro e il lato destro del contenitore. All’inizio le molecole sono tutte confinate nella metà sinistra mediante un setto divisorio posto a metà del contenitore. Dopo alcuni secondi il setto divisorio viene rimosso e le molecole possono muoversi liberamente in tutto il contenitore. Contemporaneamente nella parte bassa dello schermo vengono conteggiate le frequenze dei microstati attraverso i quali passa il sistema durante la sua evoluzione. A tal proposito viene utilizzata come variabile atta a caratterizzare i vari microstati la percentuale di molecole presente nella metà sinistra della scatola. Dopo breve tempo si osserva che il sistema evolve verso gli stati a massima probabilità (massima entropia) in cui il 50% delle molecole è nella metà sinistra e l’altro 50% nella metà destra del contenitore. Numero di molecole consigliato: 1, 2, 10, 50, 100, 200, …, 600. Velocità massima consigliata: 1, 2, 5, …, 10. Con poche molecole è preferibile usare valori piccoli delle velocità, perché l’eccessiva velocità della simulazione rende difficile la visualizzazione del moto delle molecole.
|
1.7 KB | Public |
|
||
|
Script che simula l’espansione libera di un gas perfetto e costruisce in tempo reale la distribuzione delle molecole fra il lato sinistro e il lato destro del contenitore.All’inizio le molecole sono tutte confinate nella metà sinistra mediante un setto divisorio posto a metà del contenitore. Dopo alcuni secondi il setto divisorio viene rimosso e le molecole possono muoversi liberamente in tutto il contenitore. Contemporaneamente nella parte bassa dello schermo vengono conteggiate le frequenze dei microstati attraverso i quali passa il sistema durante la sua evoluzione. A tal proposito viene utilizzata come variabile atta a caratterizzare i vari microstati la percentuale di molecole presente nella metà sinistra della scatola. Dopo breve tempo si osserva che il sistema evolve verso gli stati a massima probabilità (massima entropia) in cui il 50% delle molecole è nella metà sinistra e l’altro 50% nella metà destra del contenitore.Numero di molecole: 100Velocità massima: 10
|
1.65 KB | Public |
|
||
|
The script draws an envelope of lines
|
351 Bytes | Public |
|
||
|
Script library for fast drawing of lines, rectangles, arcs, circles.
line(x1,y1,x2,y2,c): draws a line of color c from (x1,y1) to (x2,y2); x1, y1, x2, y2 can be floating-point numbers;
rect(x1,y1,x2,y2,c): draws a rectangle of color c from (x1,y1) to (x2,y2); x1, y1, x2, y2 must be integer numbers;
arc(x0,y0,x,y,a,c): draws an arc of color c with center (x0,y0) and amplitude a (in radians) starting from point (x,y); if a>0 the arc is drawn in clockwise direction, if a<0 the arc is drawn in anti-clockwise direction; x0, y0, x, y, a can be floating-point numbers;
circle(x0,y0,r,c): draws a circle of color c with center (x0,y0) and radius r; x0, y0, r can be floating-point numbers.
|
1.01 KB | Public |
|
||
|
|
369 Bytes | Public |
|
||
|
Utility library for axonometry.py Requires fastgraph.py
|
802 Bytes | Public |
|
||
|
Calcolo di un’orbita astronautica mediante l’integrazione numerica con la calcolatrice grafica
|
434 Bytes | Public |
|
||
|
Calcolo di un’orbita astronautica mediante l’integrazione numerica con la calcolatrice grafica
|
400 Bytes | Public |
|
||
|
Teorema del limite centrale: la somma di n variabili indipendenti aventi identica distribuzione è una variabile che si distribuisce normalmente qualsiasi sia la tipologia di distribuzione iniziale.
|
997 Bytes | Public |
|
||
|
|
742 Bytes | Public |
|
||
|
The script draws the color palette that can be built on the calculator. Horizontal axis: the hue changes from left to right. Vertical axis: in the upper half the brightness changes with the maximum saturation, in the lower half the saturation changes with the maximum brightness.
|
427 Bytes | Public |
|
||
|
The script draws Peano’s curve using turtle graphics.
|
412 Bytes | Public |
|
||
|
|
894 Bytes | Public |
|
||
|
Non vedete l’ora di sperperare il vostro denaro? Giocate alla roulette!
Controlli :
Il cursore è il piccolo rettangolo azzurro da spostare con le frecce.
Usa i tasti + o - per puntare o togliere la puntata da una casella.
Premi Ok con il cursore sui due punti interrogativi per lanciare la pallina.
Un altro gioco di casinò per la calcolatrice NumWorks è disponibile qui!
Il gioco d’azzardo è distruttivo in tutti i sensi, quindi non giocateci nella vita reale.Gioco originale: https://my.numworks.com/python/antarctus/roulette
|
4.37 KB | Public |
|
||
|
This script draws an approximation of the Sierpinski triangle using the logical conjunction on Cartesian coordinates interpreted as binary numbers. If the result of x & y is 0, the pixel is left blank, otherwise the result is used as the background color.
|
142 Bytes | Public |
|
||
|
Simulatore di una slot machine con gioco equo.
Vengono simulate 100 giocate su 3 ruote con 6 simboli numerici.
Al termine viene visualizzato il totale vinto/perso.
|
401 Bytes | Public |
|
||
|
Simulatore di una slot machine con gioco non equo.
Vengono simulate 100 giocate su 3 ruote con 6 simboli numerici.
Al termine viene visualizzato il totale vinto/perso.
|
409 Bytes | Public |
|
||
|
The script draws a sphere with a radius of 100 pixels in the center of the screen. The shading is calculated using the scalar product of the normal vector at the surface and the direction (1,1,1)
|
274 Bytes | Public |
|
||
|
The script draws 10^6 points of a strange attractor for a general quadratic map:
x[n+1]=a1+a2*x[n]+a3*x[n]²+a4*x[n]*y[n]+a5*y[n]+a6*y[n]²
y[n+1]=a7+a8*x[n]+a9*x[n]²+a10*x[n]*y[n]+a11*y[n]+a12*y[n]²
In the script the letters A to Y stand for coefficients a[i] of the quadratic from -1.2 to 1.2 in steps of 0.1
http://mathworld.wolfram.com/StrangeAttractor.html
|
673 Bytes | Public |
|
||
|
The script draws 10^6 points of the standard map, an area-preserving chaotic map from a square with side 2π onto itself. It is constructed by a Poincaré’s surface of section of the kicked rotator, and is defined by:
p[n+1]=p[n]+k*sin(θ[n])
θ[n+1]=θ[n]+p[n+1]
|
293 Bytes | Public |
|
||
|
This script draws the Ulam spiral of the prime numbers in the range from 1 to 4096.
|
523 Bytes | Public |
|