Warming up a little for Xbisp ..
(ah, ok -- those symmetry comes from the fact that x²+y² == (-x)²+y² etc... (nothing that can be used for the 1.000.000$ Riemann proof
)
OK, the Lisp ..
I noticed it misses something very elementary , the (cadr ... ) , it so much used it should be there (though it can be defined from things available )
My idea is consequently while I write those examples at the mean time writing a kind of ini.lisp file with often used functions.
the "cadr" means simply the second element of the list but is written as the first element of the rest (minus the first) of the list .
you have a:: '(a b c) (car a) ->a (cdr a) -> (b c) (cadr a) ->b
the nomenclature from the IBMs from the 1950s
car (short for "Contents of the Address part of Register number"),
cdr ("Contents of the Decrement part of Register number"),
cpr ("Contents of the Prefix part of Register number"), and
ctr ("Contents of the Tag part of Register number"),
(wikipedia)
So, attached :
my definition of cadr -----> (should belong in the ini.lisp file)
the way I should handle pseudo-iteration ( I first built a helper function which does the pseudo-iteration and accumulation )
can you test the speed compared with previous ? t.i.advance
best Rob ,, (will start with source txt files now -- easier to comunicate)
oops , this time the sequence starts with 0,1,1,2,3 replace in the aux. function the (car L) with (cadr L) to start at 1,1...
.