Grasshopper

algorithmic modeling for Rhino

Function component can not handle "√" character? why?

I want to insert a one variable function component, that looks like this:

(√6/3)*x

But when I try to do this I get an error message:

Syntax error: Invalid expression: Unexpected symbol encountered (√)

Why I can not use squre root inside of a function?

In this case I can easily write the √6 as a constant 2.449489742783178

But what if sometimes I need a variable under the square root: √x?

 

Thanks.

Views: 6551

Attachments:

Replies to This Discussion

'Square root' is the same as 'power to the half' or as it would be run in a grasshopper function:

 

6^0.5

 

I assume that the symbol for square root is avoided as it's so specific to a single power.

Did you check expression functions list? You can use "sqrt(x)" 

(sqrt(6)/3)*x

both methods worked.

thank you.

 

 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service