leonardo
View:Recent Entries.
View:Archive.
View:Friends.
View:User Info.
View:Website (My Website).
You're looking at the latest 1 entries.

Tags:, ,
Subject:Program: Tennis frattale - Fractal Tennis
Time:02:27 am
Programma Python per visualizzare tennis frattale:
http://www.fantascienza.net/leonardo/so/index.html#tennis
Funziona (producendo immagini binarie) anche se non si dispone di Numeric (per Python).

Con gli array di Numeric/numarray/SciPy si possono fare molte cose, e in questo caso sono stati quasi adeguati ai miei bisogni. Di solito si dice che Python e' un linguaggio semplice, ad esempio piu' facile del C, ma questo non e' sempre vero. Infatti ad esempio in questo programma fare operazioni su liste di liste Python sarebbe risultato troppo lento anche con Psyco, per cui ho dovuto usare Numeric, il cui uso e' limitato, scomodo, non intuitivo, e serve il manuale per ricordarsi le funzioni. Implementare i loop e le eleaborazioni in C, Delphi, ecc, sarebbe stato molto piu' comodo, facile, senza limitazioni, non serebbe servito il manuale, ecc. ShedSkin con una biblioteca grafica veloce dovrebbe prendere il meglio di entrambe le vie (lo svantaggio che rimane e' che i programmi di ShedSkin sono lenti da compilare).

---------------------

Python program to show Fractal Tennis:
http://www.fantascienza.net/leonardo/so/index.html#tennis

With Numeric/numarray/SciPy arrays you can do many things, in this program they have been almost fit for my purposes. Usually people say that Python is a language simple to use, for example easier than C, but sometimes this isn't true. For example, in this program working on lists of lists with Python is too much slow even with Psyco, so I have had to use Numeric, that is limited, unintuitive, and I keep needing the manual to find its various functions. Implementing loops and processing with C or Delphi, etc languages, is much simpler, without limitations, a bit faster, and I don't need manuals to do it because you use very few things (like for loops, array access, and math operators). ShedSkin with a fast graphics library can be the best of both solutions (but compiling ShedSkin programs is very slow, so it's better to debug them with CPython).

Gamma corrected negative rescaled example image of a fractal fern:
Immagine d'esempio di foglia di felce frattale, negativa, riscalata e con gamma corretta:
comments: Leave a comment Add to Memories Tell a Friend

leonardo
View:Recent Entries.
View:Archive.
View:Friends.
View:User Info.
View:Website (My Website).
You're looking at the latest 1 entries.