vars, params

Creates a vector of TPSs corresponding to each variable/parameter in the GTPSA

Syntax

x  = vars([(descriptor|tps)])
xc = complexvars([(descriptor|tps)])

k  = params([(descriptor|tps)])
kc = complexparams([(descriptor|tps)])

Description

x = vars() creates a vector of TPS64s corresponding to each of the variables in the GTPSA defined by the Descriptor in GTPSA.desc_current

x = complexvars() creates a vector of ComplexTPS64s corresponding to each of the variables in the GTPSA defined by the Descriptor in GTPSA.desc_current


k = params() creates a vector of TPS64s corresponding to each of the parameters in the GTPSA defined by the Descriptor in GTPSA.desc_current

k = complexparams() creates a vector of ComplexTPS64s corresponding to each of the parameters in the GTPSA defined by the Descriptor in GTPSA.desc_current

Optional Argument

descriptor tells vars/params to create a vector of TPSs corresponding to each of the variables/parameters in the GTPSA defined by the passed Descriptor

tps tells vars/params to create a vector of TPSs corresponding to each of the variables/parameters in the GTPSA defined by the Descriptor of the passed TPS

Examples


julia> GTPSA.show_header=truetrue
julia> d1 = Descriptor(3, 5, 2, 5); # 3 vars, 2 params, all to order 5
julia> x1 = vars()3-element Vector{TPS64}: ----------------------- # Variables: 3 Maximum order: 5 # Parameters: 2 Parameter order: 5 ----------------------- Index Coefficient Order Exponent ----------------------------------------------------------------- 1: 1.0000000000000000e+00 1 1 0 0 | 0 0 ----------------------------------------------------------------- 2: 1.0000000000000000e+00 1 0 1 0 | 0 0 ----------------------------------------------------------------- 3: 1.0000000000000000e+00 1 0 0 1 | 0 0
julia> k1 = params()2-element Vector{TPS64}: ----------------------- # Variables: 3 Maximum order: 5 # Parameters: 2 Parameter order: 5 ----------------------- Index Coefficient Order Exponent ----------------------------------------------------------------- 1: 1.0000000000000000e+00 1 0 0 0 | 1 0 ----------------------------------------------------------------- 2: 1.0000000000000000e+00 1 0 0 0 | 0 1
julia> d2 = Descriptor(2, 5, 1, 5); # 2 vars, 1 param, all to order 5
julia> x2 = vars()2-element Vector{TPS64}: ----------------------- # Variables: 2 Maximum order: 5 # Parameters: 1 Parameter order: 5 ----------------------- Index Coefficient Order Exponent --------------------------------------------------------- 1: 1.0000000000000000e+00 1 1 0 | 0 --------------------------------------------------------- 2: 1.0000000000000000e+00 1 0 1 | 0
julia> k2 = params()1-element Vector{TPS64}: ----------------------- # Variables: 2 Maximum order: 5 # Parameters: 1 Parameter order: 5 ----------------------- Index Coefficient Order Exponent --------------------------------------------------------- 1: 1.0000000000000000e+00 1 0 0 | 1
julia> k1 = params(d1)2-element Vector{TPS64}: ----------------------- # Variables: 3 Maximum order: 5 # Parameters: 2 Parameter order: 5 ----------------------- Index Coefficient Order Exponent ----------------------------------------------------------------- 1: 1.0000000000000000e+00 1 0 0 0 | 1 0 ----------------------------------------------------------------- 2: 1.0000000000000000e+00 1 0 0 0 | 0 1

Documentation

GTPSA.varsFunction
vars(use::Union{Descriptor,TPS}=GTPSA.desc_current)

Returns a vector of TPSs corresponding to the variables for the Descriptor specified by use. Default value is GTPSA.desc_current.

Input

  • use – (Optional) Specify which Descriptor to use, default is GTPSA.desc_current

Output

  • xVector containing unit TPS{Float64}s corresponding to each variable
source
GTPSA.complexvarsFunction
complexvars(use::Union{Descriptor,TPS}=GTPSA.desc_current)

Returns a vector of ComplexTPS64s corresponding to the variables for the Descriptor specified by use. Default value is GTPSA.desc_current.

Input

  • use – (Optional) Specify which Descriptor to use, default is GTPSA.desc_current

Output

  • xVector containing unit ComplexTPS64s corresponding to each variable
source
GTPSA.paramsFunction
params(use::Union{Descriptor,TPS}=GTPSA.desc_current)

Returns a vector of TPSs corresponding to the parameters for the Descriptor specified by use. Default value is GTPSA.desc_current.

Input

  • use – (Optional) Specify which Descriptor to use, default is GTPSA.desc_current

Output

  • xVector containing unit TPS{Float64}s corresponding to each parameters
source
GTPSA.complexparamsFunction
complexparams(use::Union{Descriptor,TPS}=GTPSA.desc_current)

Returns a vector of ComplexTPS64s corresponding to the parameters for the Descriptor specified by use. Default value is GTPSA.desc_current.

Input

  • use – (Optional) Specify which Descriptor to use, default is GTPSA.desc_current

Output

  • xVector containing unit ComplexTPS64s corresponding to each parameters
source