Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/lamont/test/reduction/reduction.diderot
ViewVC logotype

Diff of /branches/lamont/test/reduction/reduction.diderot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3281, Tue Oct 13 17:05:21 2015 UTC revision 3282, Tue Oct 13 19:46:34 2015 UTC
# Line 11  Line 11 
11   */   */
12  int steps = 0;  int steps = 0;
13  int nNumbers = 10;  int nNumbers = 10;
14  real gMean = 0;  real gVar = 0;
 real gSum = 0;  
15    
16  strand Reduction (int i, real number) {  strand Reduction (int i, real number) {
17      real num = number;      real num = number;
# Line 30  Line 29 
29    
30    
31  global {  global {
32     gMean  = mean{S.num | S in Reduction.all};     gVar  = variance{S.num | S in Reduction.all};
33       gVar -= 24.0;
34     steps+=1;     steps+=1;
35  }  }
36    

Legend:
Removed from v.3281  
changed lines
  Added in v.3282

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0