Grasshopper

algorithmic modeling for Rhino

Hi Guys.

I have two specific numbers for example 10 and 0 and I just wanna select a range between those with not a linear format of 10,9,8,7,.... but each number divides on 2 everytime. Something like 10,5,2.5,1.25,0.625,....

I would be grateful if you help.

Thanks 

Views: 493

Replies to This Discussion

For one thing, you'll never get to zero - the series you describe is infinite. However, for at least the start of the set, You can create a series from 1 to some number N with the series component. Then feed this into the exponent component - raising 2 to the power of your series. Then divide 10 by the resulting value - you'll get 10.0, 5.0, 2.5, 1.25, 0.625, 0.3125, 0.15625, 0.078125, 0.0390625, 0.01953125 etc. The equation is just 10 / 2^i (where i is your series from 0 to some number.)

Thanks dear Andrew

But I didn't get where can I find the Exponent component !

Hi.

There are several ways to follow the advice of him in GH.

Attachments:

Dear Kim

Thanks a lot

Those are exactly what I'd looking for

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