sin

Functions

int main(int argc, char *argv[])

sin [ option ]

  • -l int

    • output length \((1 \le L)\)

  • -m int

    • output order \((0 \le L - 1)\)

  • -p double

    • period \((0 < P)\)

  • -a double

    • amplitude \((A)\)

  • -o int

    • output format

      • 0 sine

      • 1 cosine

  • stdout

    • double-type sinusoidal sequence

The output of this command is

\[ \begin{array}{cccc} x(0), & x(1), & \ldots, & x(L-1), \end{array} \]
where
\[ x(l) = A \sin \left( \frac{2\pi l}{P} \right). \]
If \(L\) is not given, an infinite sinusoidal sequence is generated.

Parameters:
  • argc[in] Number of arguments.

  • argv[in] Argument vector.

Returns:

0 on success, 1 on failure.

See also

impulse step ramp train