ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cal/cal/trans.cal
(Generate patch)

Comparing ray/src/cal/cal/trans.cal (file contents):
Revision 1.1 by greg, Sat Feb 22 02:07:21 2003 UTC vs.
Revision 1.2 by greg, Wed Oct 8 17:10:53 2003 UTC

# Line 1 | Line 1
1 < sq(x) : x*x;
1 > { RCSid $Id$ }
2 > {
3 >        These formulas give exact results from the infinite
4 >        series solution for an uncoated pane of glass.
5 >
6 >        Inputs:
7 >                Tn      =       normal transmittance
8 >                n       =       index of refraction
9 >
10 >        Outputs:
11 >                rn      =       single-layer normal reflectivity
12 >                tn      =       transmissivity
13 >                Rn      =       normal reflectance
14 > }
15 > Tn = 0.88;                      { normal transmittance }
16   n = 1.52;                       { index of refraction }
17 < rn = sq((1-n)/(1+n));           { reflectivity at normal incidence }
18 < tn(Tn) = (sqrt(sq(sq(1-rn))+4*sq(rn*Tn))-sq(1-rn)) / 2/rn/rn/Tn;
17 >
18 > sq(x) : x*x;
19 >
20 > rn = sq((1-n)/(1+n));
21 >
22 > tn = (sqrt(sq(sq(1-rn))+4*sq(rn*Tn))-sq(1-rn)) / (2*sq(rn)*Tn);
23 >
24 > Rn = rn + rn*sq((1-rn)*tn)/(1-sq(tn*rn));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines