@@ -42,7 +42,7 @@ program test
4242 data nread , nwrite/ 5 , 6 /
4343!
4444 data one , ten/ 1.0d0 , 1.0d1 /
45- tol = dsqrt (dpmpar(1 ))
45+ tol = sqrt (dpmpar(1 ))
4646 ldfjac = 40
4747 lwa = 1060
4848 ic = 0
@@ -195,11 +195,11 @@ subroutine vecjac(n,x,Fjac,Ldfjac,Nprob)
195195 enddo
196196 Fjac(1 ,1 ) = one
197197 Fjac(1 ,2 ) = ten
198- Fjac(2 ,3 ) = dsqrt (five)
198+ Fjac(2 ,3 ) = sqrt (five)
199199 Fjac(2 ,4 ) = - Fjac(2 ,3 )
200200 Fjac(3 ,2 ) = two* (x(2 )- two* x(3 ))
201201 Fjac(3 ,3 ) = - two* Fjac(3 ,2 )
202- Fjac(4 ,1 ) = two* dsqrt (ten)* (x(1 )- x(4 ))
202+ Fjac(4 ,1 ) = two* sqrt (ten)* (x(1 )- x(4 ))
203203 Fjac(4 ,4 ) = - Fjac(4 ,1 )
204204 case (3 )
205205!
@@ -237,7 +237,7 @@ subroutine vecjac(n,x,Fjac,Ldfjac,Nprob)
237237 tpi = eight* datan(one)
238238 temp = x(1 )** 2 + x(2 )** 2
239239 temp1 = tpi* temp
240- temp2 = dsqrt (temp)
240+ temp2 = sqrt (temp)
241241 Fjac(1 ,1 ) = hundrd* x(2 )/ temp1
242242 Fjac(1 ,2 ) = - hundrd* x(1 )/ temp1
243243 Fjac(1 ,3 ) = ten
@@ -361,7 +361,7 @@ subroutine vecjac(n,x,Fjac,Ldfjac,Nprob)
361361 do j = 1 , n
362362 tj = dfloat(j)* h
363363 temp = three* (x(j)+ tj+ one)** 2
364- Fjac(k,j) = h* dmin1 (tj* (one- tk),tk* (one- tj))* temp/ two
364+ Fjac(k,j) = h* min (tj* (one- tk),tk* (one- tj))* temp/ two
365365 enddo
366366 Fjac(k,k) = Fjac(k,k) + one
367367 enddo
@@ -653,9 +653,9 @@ subroutine vecfcn(n,x,Fvec,Nprob)
653653! POWELL SINGULAR FUNCTION.
654654!
655655 Fvec(1 ) = x(1 ) + ten* x(2 )
656- Fvec(2 ) = dsqrt (five)* (x(3 )- x(4 ))
656+ Fvec(2 ) = sqrt (five)* (x(3 )- x(4 ))
657657 Fvec(3 ) = (x(2 )- two* x(3 ))** 2
658- Fvec(4 ) = dsqrt (ten)* (x(1 )- x(4 ))** 2
658+ Fvec(4 ) = sqrt (ten)* (x(1 )- x(4 ))** 2
659659 case (3 )
660660!
661661! POWELL BADLY SCALED FUNCTION.
@@ -680,7 +680,7 @@ subroutine vecfcn(n,x,Fvec,Nprob)
680680 temp1 = dsign(c7,x(2 ))
681681 if ( x(1 )>zero ) temp1 = datan(x(2 )/ x(1 ))/ tpi
682682 if ( x(1 )<zero ) temp1 = datan(x(2 )/ x(1 ))/ tpi + c8
683- temp2 = dsqrt (x(1 )** 2 + x(2 )** 2 )
683+ temp2 = sqrt (x(1 )** 2 + x(2 )** 2 )
684684 Fvec(1 ) = ten* (x(3 )- ten* temp1)
685685 Fvec(2 ) = ten* (temp2- one)
686686 Fvec(3 ) = x(3 )
0 commit comments