Curves from Equations
Use the Equation tool to create curves based on mathematical equations.
You can select from a number of preset equations or write custom equations.
The image below shows a Sine Wave equation.

The equation is constructed in the Options panel.
You can enter an equation in the input fields for X and Y. Z is for 3D equations. You can enter a value to offset the curve in the Z-direction.
Clicking the icon to the right of the X, Y, or Z input fields opens an editor for more complex equations.