Grasshopper

algorithmic modeling for Rhino

Hi.i m a beginner.
What should i write in expression line in evaluate component for trigonometry functions such as xsin(x).
I know there is sin component in newest version but i cant use xsin(x) for example.

Views: 4918

Replies to This Discussion

So what exactly is the xsin function?

If what you are referring to is a contracted version of x * sin (x), you can use the Evaluate component to evaluate basically any math expression. Just make sure you don't omit math operators like multiplication (*) that you typically omit when writing that in formula in a textbook.

what is the problem?

You must remove the quotes at the start and end of expression.......

why?

Y = Null? If you don't use it, remove it.

y is default in evaluate component in grasshopper 0.9 .how can i remove it?

for x*sin(x) i did it , but this algorithm is absolutely useless for complicated operations.

i dont know what is the problem yet.

To remove or add inputs, zoom in, then either click the (-) symbols to remove parameters or click the (+) symbols to insert parameters.

--

David Rutten

david@mcneel.com

thank you mr rutten, but my problem was not solved.

when i write cos(x) in expression line , unknown variable encountered : cos , is displayed in errors line and component gets red,

when i write "cos(x)" , no syntax errors is displayed and component gets gray but point component gets red and nothing is displayed in rhino.

the book i m reading has been written by Tedeschi for GH 0,6 and in book , sin(x) has been written in expression line and no syntax errors has been displayed!

i dont know why it dosnt happen for GH 0.9 and what is my error.

Cos() should be a valid function. If you click the function in the top right corner, all valid operations should be listed. If this list is very short or empty, check your gh installation and make sure you have the latest version.

everything between " " marks will be treated as text and echoed back. That's obviously never going to fail, just doesn't produce any results either.

thank you mr loschke,

function list is empty in GH 0.0071 or maybe my version was faulty!

i installed GH 0.007 and my problem was obviated.

now i can use math operations.

thanks again.

You should update to the current version, which is 0.9.0075, not downgrade...

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