Grasshopper

algorithmic modeling for Rhino

Hello everyone. I'm new here in the forum.

I've been trying to find a way to get 2 digits to sum up themselves and become 1 digit. So as you can see, I'm getting
1,
2,
4,
8,
16 (7)
32 (5)
64 (1)
128 (2)
256 (4)
512 (8)
.... 

And so on... is there any way to achieve this?

Thanks for any help.

Views: 910

Replies to This Discussion

Hi Carlos, a not particularly clean way of doing this:

Round numbers, split the digits with "characters" component, and use "mass addition" to add them up. The issue is that the resulting number can have two digits, so you need to repeat the process a few times!

Hello Carlos, mire,

Actually the number you are looking for is the remainder of dividing x/9 (if the remainder is 0 then the number you want is 9). 

So you can do something like this:

the components are [modulus] and [replace text] (you can add an [absolute] if you want it to work with negative numbers as well)

Actually the above will not work if the number is 0 (it will give a result of 9 instead of 0 which is the correct). 

So the correct way would be to use this expression:

(taken from wikipedia: https://en.wikipedia.org/wiki/Digital_root#Congruence_formula)

Hi nikos, this is very interesting! It is a very neat mathematical behaviour, even though I struggle to understand the reason as of why this happens

that makes 2 of us!

I just remembered reading about this a while back.

Actually, there is some explanations of this in Eric Lippert's answer here but I am too tired to understand it at the moment. 

Cheers,

Nikos

Thanks mire and Nikos.... 

I'm actually trying to achieve an algorithm to create a torus such as the one from the vortex-based math. Not to proficient with arduino, or raspberry, but I'm guessing this could be then further developed with plasma motor or generators to achieve resonance and zero point energy.

http://rense.com/rodinaerodynamics.htm
https://blueprint.keshefoundation.org/
http://www.cheniere.org/

grasshopper's powerful but I'm a little doubtful it's gonna help you defy the laws of physics. 

Python does come with the antigravity module, wouldn't rule it out.

thanks Anders!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service