Matt,
A regular zig-zag, no idea why I got the image of a random one in my mind.
https://www.amazon.com/clouddrive/share/gRvR2b83ankx5khkrarTdYafW4rDwSBOlKbvPcOQKpq
Anyway, here are two ways with the Formula Spline and one with a Formula Effector set to Deform> Points.
In the two Formula Spline setups, the summary of the Tmin and Tmax requires a specific Sample amount. Formula.0 -10 to 10 requires 20, and Formula.1 requires twice the amount of samples.
There will be other combinations, but I guess this should work. Have an eye on the Interpolation of each Formula.
The Spline object/Formula Effector set up, uses each Spline Point as an ID. The mod() function gives out 0 or 1 for odd or even IDs. With that, the given Parameters (P.Y) is then set, as in multiplied. Note, the points are only moved up and down, they are not positioned otherwise.
Cheers