@@ -13,8 +13,8 @@ fs = [f1, f2, f3]
1313fps = [fp1, fp2, fp3]
1414nf = length (fs)
1515
16- x = collect (linspace (.5 , 2 , 35 ))
17- finex = collect (linspace (1e-2 , 2 * pi - 1e-2 , 150 ))
16+ x = collect (range (.5 , stop = 2 , length = 35 ))
17+ finex = collect (range (1e-2 , stop = 2 * pi - 1e-2 , length = 150 ))
1818ys = map (f-> f (x), fs)
1919finey = map (f-> f (finex), fs)
2020
@@ -32,7 +32,7 @@ function compare_D_CE_levels(f::Function, x::Array{Float64, 1}, order::Int)
3232 c, bs = funfitxy (cebasis, xx, yy)
3333
3434 # Evaluate Splines on finer grid
35- xfine = collect (linspace (x[1 ], x[end ], 2 * n + 1 ))
35+ xfine = collect (range (x[1 ], stop = x[end ], length = 2 * n + 1 ))
3636 yfine = f (xfine)
3737
3838 deval = Dierckx. evaluate (dspl, xfine)
@@ -62,7 +62,7 @@ function compare_D_CE_deriv(f::Function, fp::Function, x::Array{Float64, 1}, ord
6262 c, bs = funfitxy (cebasis, xx, yy)
6363
6464 # Evaluate Splines on finer grid
65- xfine = collect (linspace (x[1 ], x[end ], 2 * n + 1 ))
65+ xfine = collect (range (x[1 ], stop = x[end ], length = 2 * n + 1 ))
6666 ypfine = fp (xfine)
6767
6868 devalderiv = Dierckx. derivative (dspl, xfine)
0 commit comments