FormulaSineWave

class FormulaSineWave : public feasst::Formula

y=shift+amplitudesin(2π(xphase)/width)

Arguments

  • amplitude: the amplitude (deviation from “average”) of the wave (default: 1).

  • width: the width of the periodicity, w, in x units (default: 2 π).

  • phase: shift the wave to the right in units of x (default: 0).

  • shift: shift the wave up in units of y (default: documented below).