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 […]
![R5RS Scheme Wavefront .obj (3d Files)](https://trogramming.com/blog/wp-content/uploads/2022/03/gear.png)
3d
Code
LISP
R5RS Scheme Wavefront .obj (3d Files)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.
![R5RS Scheme 3d Extruder](https://trogramming.com/blog/wp-content/uploads/2022/02/bluebracelet2.png)
3d
Code
LISP
Media
R5RS Scheme 3d ExtruderThis 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 […]
![R5RS Scheme Essential Functions](https://trogramming.com/blog/wp-content/uploads/2022/02/Scheme-essentials.png)
LISP
R5RS Scheme Essential FunctionsEssential scheme functions
Dictionary, Distance, Angle Difference, Mod, Map, Fold, Reduce, Filter, Index, Repeat, Flatten, Replace, Replace Indices, Sort, Range
0