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

SCM Repository

[diderot] Diff of /branches/vis12/test/fun-test.diderot
ViewVC logotype

Diff of /branches/vis12/test/fun-test.diderot

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

revision 2141, Fri Feb 15 13:13:46 2013 UTC revision 2142, Sat Feb 16 13:36:41 2013 UTC
# Line 6  Line 6 
6  function real{4} toRGBA (real gr, real tr) = {gr, gr, gr, 1 - tr};  function real{4} toRGBA (real gr, real tr) = {gr, gr, gr, 1 - tr};
7    
8  function real c1 () = 1;  function real c1 () = 1;
9  function real c2 () { return 1; }  function real c2 () { return 1; real z = 2.0; }
10    
11  strand Triv ()  strand Triv ()
12  {  {
13      output int x = 0;      output real x = sqr(c1());
14    
15      update { }      update {
16            real y = 1.5 * x;
17            y = sqr(y);
18            x = y + c2();
19            stabilize;
20        }
21  }  }
22    
23  initially { Triv() | i in 1..1 };  initially { Triv() | i in 1..1 };

Legend:
Removed from v.2141  
changed lines
  Added in v.2142

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