HI,
Yes, I can write something -- maybe (attached) is a candidate ( ? , please be frank -- sometimes , these maths are much less spectacular as I think
It's interesting because :
- it's sets up prime numbers from scratch
- it sets up a pixel-spiral that in symbolic language can be written as U L 2D 2R 3U 3L 4D 4R 5U 5L .. up,down, left ; right (p.e. 4R means 4 times to the right ) , it's an example of mixing the two patterns.
- the use of complex numbers as lists (Unlike CL, Bigloo comes without complex numbers )
so, written in Bigloo Scheme -
buttons :
- a prime spiral (sometimes used to find linear correlations -- you can see some lines containing more primes than others - Euler made a few formulae (without computer of course)
- the Gaussian primes (complex prime numbers).
However , I may need your help for something .. these graphics are slow and using a faster method (by building rgb arrays) is very difficult (both in CL and Scheme). It needs pointers (only in NewLisp I can do this because it has (address .... ))
I want to use this : void j drawimagesource ( int obj , int x , int y , int w , int h , int* r , int* g ,int* b );
(those pointers are the problem ... )
Bigloo has a C-interface, but I don't understand it ... there's something about setting up pointers - with accessors and mutators , but I don't get how to communicate with these.
http://www-sop.inria.fr/indes/fp/Bigloo/doc/bigloo-28.html#The-C-interface(there's no way (afaik) Scheme or CL will give an address of any allocated memory )
best Rob
.