summaryrefslogtreecommitdiff
path: root/lib/pltanh.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
committerChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
commitf647d78463c1250ce9c99af664615fafccf5e959 (patch)
tree5b00428cef68aef1c9d407e2d4535687422419b6 /lib/pltanh.f90
parent0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff)
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'lib/pltanh.f90')
-rw-r--r--[-rwxr-xr-x]lib/pltanh.f9048
1 files changed, 24 insertions, 24 deletions
diff --git a/lib/pltanh.f90 b/lib/pltanh.f90
index 60c17c8a..4c6c2b6d 100755..100644
--- a/lib/pltanh.f90
+++ b/lib/pltanh.f90
@@ -1,24 +1,24 @@
-subroutine pltanh(x,y)
- isign=+1
- z=x
- if( x.lt.0 ) then
- isign=-1
- z=abs(x)
- endif
- if( z.le. 0.8 ) then
- y=0.83*x
- return
- elseif( z.le. 1.6 ) then
- y=isign*(0.322*z+0.4064)
- return
- elseif( z.le. 3.0 ) then
- y=isign*(0.0524*z+0.8378)
- return
- elseif( z.lt. 7.0 ) then
- y=isign*(0.0012*z+0.9914)
- return
- else
- y=isign*0.9998
- return
- endif
-end subroutine pltanh
+subroutine pltanh(x,y)
+ isign=+1
+ z=x
+ if( x.lt.0 ) then
+ isign=-1
+ z=abs(x)
+ endif
+ if( z.le. 0.8 ) then
+ y=0.83*x
+ return
+ elseif( z.le. 1.6 ) then
+ y=isign*(0.322*z+0.4064)
+ return
+ elseif( z.le. 3.0 ) then
+ y=isign*(0.0524*z+0.8378)
+ return
+ elseif( z.lt. 7.0 ) then
+ y=isign*(0.0012*z+0.9914)
+ return
+ else
+ y=isign*0.9998
+ return
+ endif
+end subroutine pltanh