Grasshopper

generative modeling for Rhino

# draw egg curves from an equation

hello

im trying to figure out how to draw an egg curve using the equation (x²+y²)²=ax³+(a-b)xy² taken from this website http://www16.ocn.ne.jp/~akiko-y/Egg/index_egg_E.html#1

expression with inputs a and b gave me no results as well as f2 ( function with two variables)

Views: 357

### Replies to This Discussion

when i input the equation in a f(n) component i get an error saying (Syntax error: Unknown variable encountered: x)

The Expression you are using has both sides of the equation already. What you require is an expression where F={EXPRESSION} where F is the only output.

For your egg curve you need to find the y={Expression} to plug into an Fx3 component with x, a and b as inputs. x is a range of 0 to 4. when a = 4

See image below and attached definition.

Attachments:

Here's my modification to add a curve through all the points

Attachments:

Have a look at this post http://www.grasshopper3d.com/profiles/blogs/supperellipse which is based on this formula's

You will have to feed the inputs of the formula component otherwise it collects null values, and when only a and b are variables as inputs then you x and y are unknown. to solve this add two more inputs with the names x and y (fn comp).

thanks alot. you guys saved my day

• View All

## Videos

• ### Authorized RhinoFabLab GulfStream Middle School, How Math and Design play a special rule.

Added by Andres Gonzalez

• ### the best position of solar panels

Added by reza salehi