Grasshopper

algorithmic modeling for Rhino

Hello,

I am making a Klein Bottle (bottle shape) using the Evaluate script and I can't figure out why it's not working. The x and z formulas are working fine and I get a Klein Bottle in 2D, but my y formula says "Syntax error: Right hand value of operator ( is Null."

Any insights into why the formula isn't working? 

Here is the formula that is plugged into the y-coordinate:

(-1/15)*Sin(u)*(3*Cos(v)-3*(Cos(u))^2*Cos(v)-48*(Cos(u))^4*Cos(v)+48(Cos(u))^6*Cos(v)-60*Sin(u)+5*Cos(u)*Cos(v)*Sin(u)-5*(Cos(u))^3*Cos(v)*Sin(u)-80*(Cos(u))^5*Cos(v)*Sin(u)+80*(Cos(u))^7*Cos(v)*Sin(u))

Here is the link to Wikipedia to see the formula:

https://en.wikipedia.org/wiki/Klein_bottle 

Thanks for your time,

August

Views: 701

Replies to This Discussion

You missed a multiplication symbol. (See bold and underlined *)

(-1/15)*Sin(u)*(3*Cos(v)-3*(Cos(u))^2*Cos(v)-48*(Cos(u))^4*Cos(v)+48 * (Cos(u))^6*Cos(v)-60*Sin(u)+5*Cos(u)*Cos(v)*Sin(u)-5*(Cos(u))^3*Cos(v)*Sin(u)-80*(Cos(u))^5*Cos(v)*Sin(u)+80*(Cos(u))^7*Cos(v)*Sin(u))

AH Yes! Thank you! 

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