From: 1mi8
hello
I am a beginner about moi3d
I want to generate a sequence. Like {11,12,13,14} becomes {11,23 (11+12),36 (11+12+13),50 (11+12+13+14).
I'm trying to do that with a loop node. But I never get the best results. That image shows how I did it. But it has many problems. For example, the resulting sequence cannot be cleared.
How do I get the correct sequence?
Image Attachments:
ffff.png
From: bemfarmer
The series looks like an arithmetic progression with common difference of 1, combined with a fibonacci recursive formula. Found javascript code for fibonacci recursion. More study needed.
- Brian
From: bemfarmer
The Progression should have a base of 11, and a Factor of 1.
Going to work, no time to study now.
- Brian
Javascript code:
https://www.geeksforgeeks.org/program-for-nth-fibonacci-number/
The nth term of an arithmetic sequence
https://www.alamo.edu/contentassets/afe30946fa58450c89840c1173f3b9d0/sequences/math1314-arithmetic-sequences.pdf
From: Frenchy Pilou (PILOU)
Maybe this can help
Left Click on the Title of the Math node for obtain Edit Properties!
From: 1mi8
Thank you for your detailed reply.
I think I gave a too regular examples. If the sequence is {1,8,20,b,c,... }, becomes {1,9,29,29+b,29+b+c,... }.
The point of the question is, I didn't use the loop node correctly or the loop node has bug.
From: 1mi8
Thank you for your detailed reply.
But the sequence I want to generate is not limited to 5 or 8 numbers, and I hope to calculate more numbers.
I think maybe I didn't use the loop node correctly, or the loop node has bug.
When I'm dealing with objects or vectors, the loop node works correctly.
From: WN
Hi all.
Try this.
https://disk.yandex.ru/d/TxQgdTTMVRMs2g
C:\Users\User\AppData\Roaming\Moi\nodeeditor\nodes\extensions
Copy the file to this location using the link. This is for Windows.
Message 10850.8 was deleted
From: 1mi8
That's great. Thanks for sharing.
This is the node I really want.
From: Frenchy Pilou (PILOU)
Very compact! Excellent!