ramp

Functions

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

ramp [ option ]

  • -l int

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

  • -m int

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

  • -s double

    • start value \((S)\)

  • -e double

    • end value \((E)\)

  • -t double

    • step size \((T)\)

  • stdout

    • double-type ramp sequence

The output of this command is

\[ \begin{array}{cccc} x(0), & x(1), & \ldots, & x(L-1), \end{array} \]
where
\[ x(l) = S + Tl. \]
If \(E\) rather than \(L\) is given, the output is
\[ \begin{array}{cccc} x(0), & x(1), & \ldots, & x((E-S)/T). \end{array} \]
If \(L\) is not given, an infinite ramp sequence is generated. If \(S=E\) and \(T=0\), an infinite step sequence is generated.

The below example outputs a parabolic sequence.

ramp -l 256 | sopr -SQR | dmp +d
Parameters:
  • argc[in] Number of arguments.

  • argv[in] Argument vector.

Returns:

0 on success, 1 on failure.

See also

impulse step train sin