File: rprod.htm

package info (click to toggle)
extrema 4.4.4.dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 19,416 kB
  • ctags: 6,689
  • sloc: cpp: 88,991; sh: 8,229; makefile: 480
file content (24 lines) | stat: -rw-r--r-- 760 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<HTML>
<HEAD>
<TITLE>RPROD function</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF" fgcolor="#000000">

<P><font size="+3" color="green"><B>Running product</B></font></P>
<P>
<TABLE border="1" cols="2" frame="box" rules="all" width="572">
<TR>
<TD width="15%" valign="top"><B>Syntax</B>:</TD>
<TD width="85%"><CODE>
y = RPROD(x)</CODE>
</TD></TR>
</table></p>
<p>
 The <code>RPROD</code> function only accepts a vector argument, and returns the running product
 of the elements of that vector. The result is a vector.</p>
<p><font size="+1" color="green"><B>Example</B></font></P>
<p>
 Suppose <code>X = [1;2;3;4;5;6;7;8;9;10]</code>, then <code>Y = RPROD(X)</code> returns vector
 <code>Y = [1;2;6;24;120;720;5040;40320;362880;3.6288e+06]</code>.</p>
</BODY>
</HTML>