Content pfp
Content
@
0 reply
0 recast
0 reaction

B1das ๐Ÿ”ท๏ธ pfp
B1das ๐Ÿ”ท๏ธ
@b1das
Anyone here with some experiance in fractals and recursive functions ? Its melting my brain a little ๐Ÿ˜…
1 reply
0 recast
6 reactions

i-rat.eth  pfp
i-rat.eth
@i-rat.eth
How can I help you, bro?
2 replies
0 recast
1 reaction

B1das ๐Ÿ”ท๏ธ pfp
B1das ๐Ÿ”ท๏ธ
@b1das
Actually, would you recome d using global variables in recursive functions ? Right now it was just 2 functions interwoven(in the picture case about 2200 times on 7 levels deep) but next one might have like 6 functions so it seems like lot of variables to keep track and send around so if its global it might simplify idk
1 reply
0 recast
0 reaction

i-rat.eth  pfp
i-rat.eth
@i-rat.eth
Actually, no, I wouldn't recommend it. Recursion in python is not a good idea in itself, I would recommend avoiding it by resorting to loops if possible. As for variables, it is better to keep them as arguments to functions than as global constants, such code will be much easier to maintain and reuse.
2 replies
0 recast
0 reaction

B1das ๐Ÿ”ท๏ธ pfp
B1das ๐Ÿ”ท๏ธ
@b1das
Im trying to implement this
1 reply
0 recast
0 reaction

i-rat.eth  pfp
i-rat.eth
@i-rat.eth
Ah, ok, now I got what you have to achieve. Let me some timeโ€ฆ
3 replies
0 recast
0 reaction

B1das ๐Ÿ”ท๏ธ pfp
B1das ๐Ÿ”ท๏ธ
@b1das
So i kinda got it except 2 cases do not look exactly the same but i dont really know what rules they used cause its 3d rotation projected on those plots and depending on whether they project and then rotate or keep it spining and only project plot and other things regarding rotation makes me give up at this point ๐Ÿ˜…
1 reply
0 recast
0 reaction

i-rat.eth  pfp
i-rat.eth
@i-rat.eth
A bit of a silly tip, but have you tried uploading that code to any llm and asking it to explain it to you? I think that's exactly the kind of thing ChatGPT will do just fine. It will be sad if you give up halfway through.
1 reply
0 recast
0 reaction

B1das ๐Ÿ”ท๏ธ pfp
B1das ๐Ÿ”ท๏ธ
@b1das
i would say its more like 93% finished haha idk maybe later but i think its more of a mathematician question. i can implement it i just dont know what to implement
1 reply
0 recast
1 reaction

i-rat.eth  pfp
i-rat.eth
@i-rat.eth
Oh, this one looks just lovely! As for the next steps to implement... Just take blender (afaik they have python API as well), take a random 3d DOL-system rules (f.e. from here https://www.researchgate.net/publication/266652438_3D_Tree_Modeling_and_Visualization_Simulation_Based_on_Fractal) and try to code it.
1 reply
0 recast
1 reaction