1 function drpack(x, x0, b, t, amp) result(f_drpack)
10 real(r8) :: x, x0, b, t, amp
17 p4 = 2._r8 / b - 2._r8 * dx / b**2
20 p4 = -6._r8 * dx / ((t - b)**2) + 6._r8 * dx**2 / (t - b)**3
23 if (x < x0) f_drpack = -f_drpack
24 if (abs(x - x0) > t) f_drpack = 0._r8
real(r8) function drpack(x, x0, b, t, amp)