Grasshopper

algorithmic modeling for Rhino

I just want to make a " x² " expression on Evaluate expression designer and I CANT!

Oh gosh, somebody help me... I just want to make a simple function, with one variable: x², and it appears the error message: 1. Parameter "Variable x" has an invalid name. Only use alphanumeric characters and don't start with a number.

What am I doing wrong? How should I write the expression? 

Thanks

Views: 10477

Replies to This Discussion

could you send a screenshot?then i can see where it goes wrong

Attachments:

here it is a screenshot!

very simple, but i dont know how to write the expression... 

Attachments:

If it is just to get the square x i would recommend just using the square component.

If it is to create a larger equation then you can add it as a panel or by double clicking the function.

To create a square x function you can use it as Pow(x,2) or any variable you would like to use as 2.

dont know if you noticed but in my first reply i added i img that shows a different way to do it

This a bug in the way draw full names works with expressions. Just rename the input without any spaces

Please, someone could help me about the same question above? I didn't can do it. Is anything change in last version of the Grasshopper for that function? Thank you!!!

when you write your equation, make sure that the input variable name is the same as they variable in the equation

I'm sorry, but I don't understand what it means, could you send me a image, please? Because I try everything: I follow the Arturo Tedeschi's book, I did the examples above, but, anything doesn't works, and I did using the component "Square" and works, but now I need to do other expression using this, but simply the function in the component "Panel" -((x2+y2)/4)+4 and don't work too. So, the question is: How could to use the "Evaluate" with a expression (in Panel or not)? Thank you so much!

Can you upload the file with the failing expression?

Incidentally the text you posted just uses the regular 2 character, not the superscript ² which is needed for squaring.

Also note you can just use x*x or x^2 to square x.

I tried x^2, but don't works. I'll try x*x

Hi, good morning. I tried, but it doesn't work.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service