Create ruled_sinewave