Next  |  Prev  |  Up  |  Top  |  JOS Index  |  JOS Pubs  |  JOS Home  |  Search

Sum and Product Macros

There are similarly prod and sum macros:

  pf = prod(i,N,f(i)); // pf = f(0) * f(1) * ... * f(N-1);
  sf =  sum(i,N,f(i)); // sf = f(0) + f(1) + ... + f(N-1);
One often does not need sum because of the summing property of :>_, and the latter yields a more compact block-diagram drawing.


Next  |  Prev  |  Up  |  Top  |  JOS Index  |  JOS Pubs  |  JOS Home  |  Search

Download aspf.pdf
[Comment on this page via email]

``Audio Signal Processing in Faust'', by Julius O. Smith III
Copyright © 2024-05-01 by Julius O. Smith III
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA