summaryrefslogtreecommitdiff
path: root/lib/ft8/h1.f90
blob: 8e93122778ea39657e54b29272621b50751759ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
real function h1(x)

!  sigma=1.0/sqrt(2.0)
  sigma=1.0
  xlim=sigma/sqrt(6.0)
  ax=abs(x)
  sgnx=1.0
  if(x.lt.0) sgnx=-1.0
  if(ax.le.xlim) then
     h1=x
  else
     z=exp(1.0/6.0 - (ax/sigma)**2)
     h1=sgnx*sqrt(6.0)*sigma*(2.0/3.0 - 0.5*z)
  endif

  return
end function h1