Partition function for bell (Bach.eval) | python example ported to bell

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
sydy
Posts: 156
Joined: Tue Mar 21, 2017 1:34 pm

Partition function for bell (Bach.eval) | python example ported to bell

Post by sydy » Wed Jan 06, 2021 1:44 pm

Dear all,

Here's a partition function written in bell. I have not much merit in it. My contribution is that I ported an example from geeksforgeeks (yes, I'm a young padawan) to bell.

I did this because we do still need a partition function in bell. This one will be part of my global function file which I will share as soon as I think it has the merit to be shared. Attention: the number of partitions per integer grows exponentially.

It's also a good example to learn about bell. I also attached the python example so if you're coming from python you can compare it to bell.

Best,
Micha Seidenberg
Attachments
integer_partition_public.zip
Source(python), Bellscript, Tryout-Maxpatch with embed code
(182.62 KiB) Downloaded 939 times

Post Reply