Grasshopper

algorithmic modeling for Rhino

I need to make a function or some component that will for input of these numbers give me these results(outputs):

 

Input | Result

5              1

7              2

9              3

11            4

13            5

15            6

17            7

...            …

 

Any idea how to do this?

Thank you.

Views: 298

Replies to This Discussion

(List Length and Series components)

thank you for the tip Systemiq.

 

I made a mistake. Here is what it should look like:

Input | Result
    3              0
    5              1
    7              2
    9              3
    11             4
    13             5
    15             6
    17             7
    ...            …

But it seems I have not been clear:

 

the input values (3,5,7,9,11,13) should be presented in the way of "number slider" parameter. So by increasing the value of the slider from minimum 3, to 5, 7, 9, 13, 15, 17... I should get an output numbers of 0,1,3,4,5,6,7...

 

So I if choose value 3 on the input "number slider", on the other end, I want 0 as an output.

Or if I choose value 5 on the input "number slider", I want 1 as an output, and so on.

 

Is this possible?

By example:
Attachments:

Perfect!

Merci beaucoup :)

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