1 double precision function gnmr1(y,ymin,ymax)
3 double precision y,ymin,ymax
4 double precision wykl /4.0d0/
6 gnmr1=(ymin-y)**wykl/wykl
7 else if (y.gt.ymax) then
8 gnmr1=(y-ymax)**wykl/wykl
14 c------------------------------------------------------------------------------
15 double precision function gnmr1prim(y,ymin,ymax)
17 double precision y,ymin,ymax
18 double precision wykl /4.0d0/
20 gnmr1prim=-(ymin-y)**(wykl-1)
21 else if (y.gt.ymax) then
22 gnmr1prim=(y-ymax)**(wykl-1)
28 c------------------------------------------------------------------------------
29 double precision function harmonic(y,ymax)
31 double precision y,ymax
32 double precision wykl /2.0d0/
33 harmonic=(y-ymax)**wykl
36 c-------------------------------------------------------------------------------
37 double precision function harmonicprim(y,ymax)
38 double precision y,ymin,ymax
39 double precision wykl /2.0d0/
40 harmonicprim=(y-ymax)*wykl
43 c---------------------------------------------------------------------------------