5
This commit is contained in:
parent
bc8e7ba7a5
commit
f36c8a3673
@ -1,19 +0,0 @@
|
||||
|
||||
!符号函数
|
||||
real*8 function FUNC_sign(A)
|
||||
implicit none
|
||||
|
||||
real*8 :: A
|
||||
if(isnan(A)) then
|
||||
FUNC_sign = A
|
||||
elseif(A>0) then
|
||||
FUNC_sign = 1.0
|
||||
elseif(A<0) then
|
||||
FUNC_sign = -1.0
|
||||
elseif(A==0) then
|
||||
FUNC_sign = 0.0
|
||||
end if
|
||||
|
||||
end function
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user