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

Comparing ray/src/cal/cal/norm.cal (file contents):
Revision 1.1 by greg, Sat Feb 22 02:07:21 2003 UTC vs.
Revision 1.2 by greg, Wed Apr 25 01:06:25 2012 UTC

# Line 1 | Line 1
1 + { RCSid $Id$ }
2   {
3          Normal Distribution Functions
4  
# Line 23 | Line 24 | Q2(t) = t*(.31938153+t*(-.356563782+t*(1.781477937+
24  
25   u(p) = if( .5-p, u1(p), -u1(1-p) ) ;
26  
27 < u1(p) = u2(sqrt(log(1/p/p))) ;
27 > u1(p) = u2(sqrt(-2*log(p))) ;
28  
29   u2(t) = t - (2.515517+t*(.802853+t*.010328))/
30                  (1+t*(1.432788+t*(.189269+t*.001308))) ;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines