I’m a beginner in using Grasshopper and I have a question:
Is it possible to define the Recamán sequence using the Expression component? Or, more basic, how do you go about when you are dealing with recursive sequences in general. What is the proper syntax or method for such situations.
Grasshopper has some support for making recursive sequences (with the Sequence component) but not if the sequence requires conditional logic or looping over the entire sequence. Then it requires custom programming. Python, C#, VB, …
Here’s a Recamán’s Sequence GHPython script, I wrote a while back, inspired by this Numberphile video on YouTube. Apart from iteratively generating a sequence for a desired length, it also draws arc.
Thanks a lot! That exact same video sparked my interest regarding this particular sequence.
As I’m trying to learn GH I took it as a nice example to crack my head with.
Although doubtful, I’ll come back to this thread if I find a “pure” GH solution.