Here is a functional, tail-recursive implementation of a simple Particle Swarm Optimiser PSO routines are ideal for tuning the numerical variables of a given function so long as some means can be given for quantifying proximity to the desired solution. Returns a function that accelerates X towards P proportional to their distance*S and moves X […]
This library will allow for the easy creation of 3d Wavefront .Obj Files https://en.wikipedia.org/wiki/Wavefront_.obj_file in Scheme. I’ve made sure the code is R5RS compliant, tested under Dr-Racket but I’m pretty sure it should work in MIT-scheme and probably many other dialects.
This is my 3d library, from my personal R5RS build; It requires my .obj library be loaded.At the end I’ve also attached and commented out a few examples and demos. The simplest top-level Function is the surface of revolution, you simply enter a 2d shape as a list of 2d-points (just cons cells, no special […]