Skip to content

Commit 68ff55c

Browse files
committed
Update Julia scripts
1 parent b641859 commit 68ff55c

File tree

13 files changed

+35
-29
lines changed

13 files changed

+35
-29
lines changed

lib/node_modules/@stdlib/math/base/special/avercos/test/fixtures/julia/runner.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Generate fixture data and write to file.
2525
2626
# Arguments
2727
28-
* `x`: domain
28+
* `domain`: domain
2929
* `name::AbstractString`: output filename
3030
3131
# Examples
@@ -35,7 +35,8 @@ julia> x = range( -1, stop = 1, length = 2001 );
3535
julia> gen( x, \"data.json\" );
3636
```
3737
"""
38-
function gen( x, name )
38+
function gen( domain, name )
39+
x = collect( domain );
3940
y = acos.( 1.0 .+ x );
4041

4142
# Store data to be written to file as a collection:

lib/node_modules/@stdlib/math/base/special/cospi/test/fixtures/julia/runner.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Generate fixture data and write to file.
2525
2626
# Arguments
2727
28-
* `x`: domain
28+
* `domain`: domain
2929
* `filepath::AbstractString`: filepath of the output file
3030
3131
# Examples
@@ -35,7 +35,8 @@ julia> x = range( -1000, stop = 1000, length = 2001 );
3535
julia> gen( x, \"./data.json\" );
3636
```
3737
"""
38-
function gen( x, filepath )
38+
function gen( domain, filepath )
39+
x = collect( domain );
3940
y = cospi.( x );
4041
data = Dict([
4142
("x", x),

lib/node_modules/@stdlib/math/base/special/covercos/test/fixtures/julia/runner.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Generate fixture data and write to file.
2525
2626
# Arguments
2727
28-
* `x`: domain
28+
* `domain`: domain
2929
* `filepath::AbstractString`: filepath of the output file
3030
3131
# Examples
@@ -35,7 +35,8 @@ julia> x = range( -1000.0, stop = 1000.0, length = 2001 );
3535
julia> gen( x, \"./data.json\" );
3636
```
3737
"""
38-
function gen( x, filepath )
38+
function gen( domain, filepath )
39+
x = collect( domain );
3940
y = 1.0 .+ sin.( x );
4041
data = Dict([
4142
("x", x),

lib/node_modules/@stdlib/math/base/special/coversin/test/fixtures/julia/runner.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Generate fixture data and write to file.
2525
2626
# Arguments
2727
28-
* `x`: domain
28+
* `domain`: domain
2929
* `filepath::AbstractString`: filepath of the output file
3030
3131
# Examples
@@ -35,7 +35,8 @@ julia> x = range( -1000.0, stop = 1000.0, length = 2001 );
3535
julia> gen( x, \"./data.json\" );
3636
```
3737
"""
38-
function gen( x, filepath )
38+
function gen( domain, filepath )
39+
x = collect( domain );
3940
y = 1.0 .- sin.( x );
4041
data = Dict([
4142
("x", x),

lib/node_modules/@stdlib/math/base/special/exp/test/fixtures/julia/runner.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Generate fixture data and write to file.
2525
2626
# Arguments
2727
28-
* `x`: domain
28+
* `domain`: domain
2929
* `filepath::AbstractString`: filepath of the output file
3030
3131
# Examples

lib/node_modules/@stdlib/math/base/special/log2/scripts/fixtures/julia/runner.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Generate fixture data and write to file.
2525
2626
# Arguments
2727
28-
* `x`: domain
28+
* `domain`: domain
2929
* `filepath::AbstractString`: filepath of the output file
3030
3131
# Examples

lib/node_modules/@stdlib/math/base/special/sin/test/fixtures/julia/runner.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Generate fixture data and write to file.
2525
2626
# Arguments
2727
28-
* `x`: domain
28+
* `domain`: domain
2929
* `name::AbstractString`: output filename
3030
3131
# Examples
@@ -36,7 +36,7 @@ julia> gen( x, \"data.json\" );
3636
```
3737
"""
3838
function gen( domain, name )
39-
x = collect( domain )
39+
x = collect( domain );
4040
y = sin.( x );
4141

4242
# Store data to be written to file as a collection:

lib/node_modules/@stdlib/math/base/special/sinc/test/fixtures/julia/runner.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Generate fixture data and write to file.
2525
2626
# Arguments
2727
28-
* `x`: domain
28+
* `domain`: domain
2929
* `name::AbstractString`: output filename
3030
3131
# Examples
@@ -36,7 +36,7 @@ julia> gen( x, \"data.json\" );
3636
```
3737
"""
3838
function gen( domain, name )
39-
x = collect( domain )
39+
x = collect( domain );
4040
y = sinc.( x );
4141

4242
# Store data to be written to file as a collection:

lib/node_modules/@stdlib/math/base/special/sincos/test/fixtures/julia/runner.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Generate fixture data and write to file.
2525
2626
# Arguments
2727
28-
* `x`: domain
28+
* `domain`: domain
2929
* `filepath::AbstractString`: filepath of the output file
3030
3131
# Examples

lib/node_modules/@stdlib/math/base/special/sincospi/test/fixtures/julia/runner.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Generate fixture data and write to file.
2525
2626
# Arguments
2727
28-
* `x`: domain
28+
* `domain`: domain
2929
* `filepath::AbstractString`: filepath of the output file
3030
3131
# Examples

lib/node_modules/@stdlib/math/base/special/sinh/test/fixtures/julia/runner.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Generate fixture data and write to file.
2525
2626
# Arguments
2727
28-
* `x`: domain
28+
* `domain`: domain
2929
* `name::AbstractString`: output filename
3030
3131
# Examples
@@ -36,7 +36,7 @@ julia> gen( x, \"data.json\" );
3636
```
3737
"""
3838
function gen( domain, name )
39-
x = collect( domain )
39+
x = collect( domain );
4040
y = sinh.( x );
4141

4242
# Store data to be written to file as a collection:

lib/node_modules/@stdlib/math/base/special/sinpi/test/fixtures/julia/runner.jl

+7-6
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,19 @@ Generate fixture data and write to file.
2525
2626
# Arguments
2727
28-
* `x`: domain
28+
* `domain`: domain
2929
* `name::AbstractString`: output filename
3030
3131
# Examples
3232
3333
``` julia
34-
julia> x = linspace( -1000, 1000, 2001 );
34+
julia> x = range( -1000, stop = 1000, length = 2001 );
3535
julia> gen( x, \"data.json\" );
3636
```
3737
"""
38-
function gen( x, name )
39-
y = sinpi( x );
38+
function gen( domain, name )
39+
x = collect( domain );
40+
y = sinpi.( x );
4041

4142
# Store data to be written to file as a collection:
4243
data = Dict([
@@ -60,9 +61,9 @@ file = @__FILE__;
6061
dir = dirname( file );
6162

6263
# Integer values:
63-
x = linspace( -1000, 1000, 2001 );
64+
x = range( -1000, stop = 1000, length = 2001 );
6465
gen( x, "integers.json" );
6566

6667
# Decimal values:
67-
x = linspace( -100, 100, 2003 );
68+
x = range( -100, stop = 100, length = 2003 );
6869
gen( x, "decimals.json" );

lib/node_modules/@stdlib/math/base/special/sqrt/scripts/fixtures/julia/runner.jl

+6-5
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,19 @@ Generate fixture data and write to file.
2525
2626
# Arguments
2727
28-
* `x`: domain
28+
* `domain`: domain
2929
* `filepath::AbstractString`: filepath of the output file
3030
3131
# Examples
3232
3333
``` julia
34-
julia> x = linspace( -1000, 1000, 2001 );
34+
julia> x = range( -1000, stop = 1000, length = 2001 );
3535
julia> gen( x, \"./data.json\" );
3636
```
3737
"""
38-
function gen( x, filepath )
39-
y = sqrt( x );
38+
function gen( domain, filepath )
39+
x = collect( domain );
40+
y = sqrt.( x );
4041
data = Dict([
4142
("x", x),
4243
("expected", y)
@@ -53,6 +54,6 @@ file = @__FILE__;
5354
dir = dirname( file );
5455

5556
# Generate fixture data for decimal values:
56-
x = linspace( 0.5, 1000.0, 1000.0 )
57+
x = range( 0.5, stop = 1000.0, length = 1000.0 )
5758
out = joinpath( dir, "data.json" );
5859
gen( x, out );

0 commit comments

Comments
 (0)