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

SCM Repository

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

Diff of /branches/vis12-cl/test/triv.diderot

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

revision 3225, Thu Jul 23 11:25:15 2015 UTC revision 3226, Thu Jul 23 11:33:34 2015 UTC
# Line 1  Line 1 
1  // triv.diderot  // triv.diderot
2  //  //
3    
4  strand RayCast ()  real x = 2.0;
5    
6    strand RayCast (int r, int c)
7  {  {
8      real t = 0.0;      real t = 0.0;
9        real s = t + 2.0;
10        output real y = 1.0;
11        output real z = exp(1.5);
12        output real w = erf(z);
13    
14        initially
15        {
16            s = t + 2.0;
17        }
18    
19      update      update
20      {      {
21          t = t + 0.1;          t = t + 0.1 * (r+c);
22          if (t > 20.0)          if (t <= 20.0)
23                continue;
24              stabilize;              stabilize;
25      }      }
26    
27      /* render: output maxval */      /* render: output maxval */
28  }  }
29    
30  initially [ RayCast() | r in 0..199, c in 0..199 ];  initially [ RayCast(r, c) | r in 0..199, c in 0..199 ];

Legend:
Removed from v.3225  
changed lines
  Added in v.3226

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