Skip to content

Commit e0add1a

Browse files
committed
changed stdlib_functions to stdlib_specialfunctions
1 parent 124a2c5 commit e0add1a

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ set(SRC
4141
stdlib_kinds.f90
4242
stdlib_logger.f90
4343
stdlib_system.F90
44-
stdlib_functions.f90
45-
stdlib_functions_legendre.f90
44+
stdlib_specialfunctions.f90
45+
stdlib_specialfunctions_legendre.f90
4646
stdlib_quadrature_gauss.f90
4747
${outFiles}
4848
)

src/Makefile.manual

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ SRC = f18estop.f90 \
44
stdlib_bitsets_64.f90 \
55
stdlib_bitsets_large.f90 \
66
stdlib_error.f90 \
7-
stdlib_functions.f90 \
8-
stdlib_functions_legendre.f90 \
7+
stdlib_specialfunctions.f90 \
8+
stdlib_specialfunctions_legendre.f90 \
99
stdlib_io.f90 \
1010
stdlib_kinds.f90 \
1111
stdlib_linalg.f90 \
@@ -53,8 +53,8 @@ stdlib_bitsets.o: stdlib_kinds.o
5353
stdlib_bitsets_64.o: stdlib_bitsets.o
5454
stdlib_bitsets_large.o: stdlib_bitsets.o
5555
stdlib_error.o: stdlib_optval.o
56-
stdlib_functions.o: stdlib_kinds.o
57-
stdlib_functions_legendre.o: stdlib_kinds.o
56+
stdlib_specialfunctions.o: stdlib_kinds.o
57+
stdlib_specialfunctions_legendre.o: stdlib_kinds.o
5858
stdlib_io.o: \
5959
stdlib_error.o \
6060
stdlib_optval.o \

src/stdlib_quadrature_gauss.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
submodule (stdlib_quadrature) stdlib_quadrature_gauss
22
use stdlib_kinds, only: sp, dp, qp
3-
use stdlib_functions, only: legendre, dlegendre
3+
use stdlib_specialfunctions, only: legendre, dlegendre
44
implicit none
55

66
real(dp), parameter :: pi = acos(-1._dp)
@@ -84,6 +84,7 @@ pure module subroutine gauss_legendre_lobatto_fp64 (x, w, interval)
8484
w(n+1) = 2._dp/(n*(n+1._dp))
8585

8686
do i = 1, (n+1)/2 - 1
87+
! initial guess from an approximate form given by SV Parter (1999)
8788
x(i+1) = -cos( (i+0.25_dp)*pi/n - 3/(8*n*pi*(i+0.25_dp)))
8889
do j = 0, newton_iters-1
8990
leg = legendre(n+1,x(i+1)) - legendre(n-1,x(i+1))

src/stdlib_functions.f90 renamed to src/stdlib_specialfunctions.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module stdlib_functions
1+
module stdlib_specialfunctions
22
use stdlib_kinds, only: sp, dp, qp
33

44
implicit none
@@ -31,4 +31,4 @@ pure elemental module function dlegendre_fp64(n,x) result(dleg)
3131
end function
3232
end interface
3333

34-
end module stdlib_functions
34+
end module stdlib_specialfunctions

src/stdlib_functions_legendre.f90 renamed to src/stdlib_specialfunctions_legendre.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
submodule (stdlib_functions) stdlib_functions_legendre
1+
submodule (stdlib_specialfunctions) stdlib_specialfunctions_legendre
22
use stdlib_kinds, only: sp, dp, qp
33
implicit none
44

0 commit comments

Comments
 (0)