Skip to contents

Creates a vector containing a sequence of values starting at the initial point and going to the terminal point.

Usage

seq_default_a(a, length_out)

Arguments

a

A long double that denotes the starting point.

length_out

A long unsigned int that denotes the number of points to use.

Value

A vector of length length_out that contains values in \([-a,a]\).

See also

Author

Anthony R. Colombo, James J Balamuta

Examples

# Call with the following data:
seq_default_a(1, 10)
#>             [,1]
#>  [1,] -1.0000000
#>  [2,] -0.7777778
#>  [3,] -0.5555556
#>  [4,] -0.3333333
#>  [5,] -0.1111111
#>  [6,]  0.1111111
#>  [7,]  0.3333333
#>  [8,]  0.5555556
#>  [9,]  0.7777778
#> [10,]  1.0000000
seq_default_a(1, 10)
#>             [,1]
#>  [1,] -1.0000000
#>  [2,] -0.7777778
#>  [3,] -0.5555556
#>  [4,] -0.3333333
#>  [5,] -0.1111111
#>  [6,]  0.1111111
#>  [7,]  0.3333333
#>  [8,]  0.5555556
#>  [9,]  0.7777778
#> [10,]  1.0000000