home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
C-SSP.ARJ
/
VEPROD.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1984-06-13
|
256 b
|
16 lines
veprod(a,b,c,n)
/*this function computes the inner product of two vectors.*/
int n;
float a[],b[],*c;
{
register int i;
*c = 0.0;
for(i = 0; i <= n-1; i++)
*c += a[i] * b[i];
}