# Using Geometry Nodes to create and plot equations / functions

I know we can plot equations / functions with the Math Function - XYZ Math Surface Option in Blender and then use a Screw Modifier to make it 3D see image below.

I would like to do this using Geometry Nodes so I can adjust the values / equation dynamically to see how different values will effect the plot. I know Animation Nodes can do this but the goal is to do this in Geometry Nodes. Any thoughts / ideas how this can be accomplished?

• AFAIK this isn’t possible „only“ with GN right now - but of course you could rebuild the math equations with nodes, but if i understood you right - you don’t want that. Jan 2 at 10:16
• @Chris if I build this with nodes (not sure the difference between nodes and geometry nodes is) will this allow the mesh to be dynamically changed? How can this be done? Any examples to look at to see if it will create what I'm trying to do? Jan 2 at 10:37
• i meant math (geometry) nodes of course... ;) Jan 2 at 11:27
• Another way to add the math nodes. Math Formula addon v1.2.0 youtube.com/watch?v=II_0Ep1z-Ks Jan 25 at 19:08

## 2 Answers

you could e.g. use this node setup:

I basically use index as x value (just multiply/add it so that it looks nicer), and here just a simple x*x function

or a sin - function:

and here an example of a 3d function:

Well, you can rebuild this equation using a bunch of math nodes:

Build the line and offset Y by this equation