Doxygen Source Code Documentation
        
Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search   
cdf_72.c
Go to the documentation of this file.00001 #include "cdflib.h"
00002 double stvaln(double *p)
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 {
00034 static double xden[5] = {
00035     0.993484626060e-1,0.588581570495e0,0.531103462366e0,0.103537752850e0,
00036     0.38560700634e-2
00037 };
00038 static double xnum[5] = {
00039     -0.322232431088e0,-1.000000000000e0,-0.342242088547e0,-0.204231210245e-1,
00040     -0.453642210148e-4
00041 };
00042 static int K1 = 5;
00043 static double stvaln,sign,y,z;
00044 
00045 
00046 
00047 
00048     if(!(*p <= 0.5e0)) goto S10;
00049     sign = -1.0e0;
00050     z = *p;
00051     goto S20;
00052 S10:
00053     sign = 1.0e0;
00054     z = 1.0e0-*p;
00055 S20:
00056     y = sqrt(-(2.0e0*log(z)));
00057     stvaln = y+devlpl(xnum,&K1,&y)/devlpl(xden,&K1,&y);
00058     stvaln = sign*stvaln;
00059     return stvaln;
00060 }